<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Practical example of SAX parser in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Practical-example-of-SAX-parser/m-p/2301663#M73746</link>
    <description>Hi
&lt;BR /&gt;I have tested tFileInputXML with SAX mode and it works fine.
&lt;BR /&gt;Do you encounter any error? Please show us.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
    <pubDate>Fri, 13 Apr 2012 03:56:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-04-13T03:56:40Z</dc:date>
    <item>
      <title>Practical example of SAX parser</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Practical-example-of-SAX-parser/m-p/2301662#M73745</link>
      <description>I've found quite some topics on SAX parsing with tInputFileXML, but none really conclusive.
&lt;BR /&gt;If I set up an XML in my metadata, everything is working fine with DOM parsing, but it won't work with SAX parsing.
&lt;BR /&gt;SAX and Xpath can be tricky (though there are libraries out there to support Xpath when using SAX parsers), but as that doesn't seem to be supported in Talend, what's the use of offering a SAX parser anyway?
&lt;BR /&gt;More to the point, how can I properly configure the tInputFileXML component to use SAX parsing, and still give me a result. Is there any proper guideline out there?</description>
      <pubDate>Thu, 12 Apr 2012 16:49:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Practical-example-of-SAX-parser/m-p/2301662#M73745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-12T16:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Practical example of SAX parser</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Practical-example-of-SAX-parser/m-p/2301663#M73746</link>
      <description>Hi
&lt;BR /&gt;I have tested tFileInputXML with SAX mode and it works fine.
&lt;BR /&gt;Do you encounter any error? Please show us.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 13 Apr 2012 03:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Practical-example-of-SAX-parser/m-p/2301663#M73746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-13T03:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Practical example of SAX parser</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Practical-example-of-SAX-parser/m-p/2301664#M73747</link>
      <description>It's not that I get an error, just that there are no results.&lt;BR /&gt;The format of my XML is like this:&lt;BR /&gt;&lt;PRE&gt;&amp;lt;results&amp;gt;&lt;BR /&gt;	&amp;lt;result&amp;gt;&lt;BR /&gt;		&amp;lt;binding name="result1"&amp;gt;&lt;BR /&gt;			&amp;lt;literal&amp;gt;Value 1&amp;lt;/literal&amp;gt;&lt;BR /&gt;		&amp;lt;/binding&amp;gt;&lt;BR /&gt;		&amp;lt;binding name="result2"&amp;gt;&lt;BR /&gt;			&amp;lt;literal&amp;gt;Value 2&amp;lt;/literal&amp;gt;&lt;BR /&gt;		&amp;lt;/binding&amp;gt;&lt;BR /&gt;		&amp;lt;binding name="result3"&amp;gt;&lt;BR /&gt;			&amp;lt;literal&amp;gt;Value 3&amp;lt;/literal&amp;gt;&lt;BR /&gt;		&amp;lt;/binding&amp;gt;&lt;BR /&gt;		&amp;lt;binding name="result4"&amp;gt;&lt;BR /&gt;			&amp;lt;literal&amp;gt;Value 4&amp;lt;/literal&amp;gt;&lt;BR /&gt;		&amp;lt;/binding&amp;gt;&lt;BR /&gt;	&amp;lt;/result&amp;gt;&lt;BR /&gt;&amp;lt;/results&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;Looping follows this xpath: &lt;B&gt;/results/result&lt;/B&gt;&lt;BR /&gt;And for retrieving the values, I use xpaths like &lt;B&gt;binding/literal&lt;/B&gt;&lt;BR /&gt;With DOM it's working fine. For SAX, it does loop over the results, but doesn't extract the actual values. So for an XML file with a 100 &amp;lt;result&amp;gt; tags, I'll get a hundred empty results.</description>
      <pubDate>Fri, 13 Apr 2012 08:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Practical-example-of-SAX-parser/m-p/2301664#M73747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-13T08:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Practical example of SAX parser</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Practical-example-of-SAX-parser/m-p/2301665#M73748</link>
      <description>Hi
&lt;BR /&gt;Modify Loop Xpath query and Xpath query for each columns as the following image.
&lt;BR /&gt;Then it will work fine with SAX mode.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Fri, 13 Apr 2012 08:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Practical-example-of-SAX-parser/m-p/2301665#M73748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-13T08:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Practical example of SAX parser</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Practical-example-of-SAX-parser/m-p/2301666#M73749</link>
      <description>Hi pedro,&lt;BR /&gt;indeed that's working, though the result is a for each value a 'row', rather than encapsulating the different result1/2/3/4 into a single result 'object'.</description>
      <pubDate>Fri, 13 Apr 2012 09:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Practical-example-of-SAX-parser/m-p/2301666#M73749</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-13T09:18:26Z</dc:date>
    </item>
  </channel>
</rss>

