<?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: parse xml elements/attribute from xml file.. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/parse-xml-elements-attribute-from-xml-file/m-p/2213774#M10907</link>
    <description>Hi,
&lt;BR /&gt;Your PigQuery is good since you are using the good relation names (tPigCode_1_RESULT and tPigLoad_1_RESULT).
&lt;BR /&gt;But It's not the good way of parsing the XML. You would need to use the XMLLoader after registering it into your PIG script.
&lt;BR /&gt;Unfortunately, it's not yet possible in Talend. A festure request already have been opened in our JIRA for that.
&lt;BR /&gt;Regards,</description>
    <pubDate>Fri, 16 Nov 2012 15:17:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-11-16T15:17:50Z</dc:date>
    <item>
      <title>parse xml elements/attribute from xml file..</title>
      <link>https://community.qlik.com/t5/Talend-Studio/parse-xml-elements-attribute-from-xml-file/m-p/2213773#M10906</link>
      <description>Hi,&lt;BR /&gt;       I am new to Talend Big Data and am working on Hadoop using Talend Big data.&lt;BR /&gt;       I have stored xml file into HDFS using tHdfsPut component successfully and read whole xml file using tPigLoad component and it works fine.&lt;BR /&gt;       But my requirement is to parse some xml element and attribute data from that xml which is in hdfs using tpig component.&lt;BR /&gt;       I have used tPigLoad ,tPigCode and tPigStoreResult component. I think my tPigCode query is not correct.&lt;BR /&gt;       so anyone can tell me what is the query for tPigCode. I have wasted so many days but no output..&lt;BR /&gt;       please help me out from this... how to extract data from xml and write it into some file...&lt;BR /&gt;       please reply soon...&lt;BR /&gt;       Could you please help me out from this task?&lt;BR /&gt;       Xml  Format is:--&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;CustomerDetails&amp;gt;&lt;BR /&gt;&amp;lt;CustomerName name="shikha" id="12"/&amp;gt;&lt;BR /&gt;&amp;lt;/CustomerDetails&amp;gt;&lt;BR /&gt;I have created two columns "name" and "id" in schema.&lt;BR /&gt;tPigQuery is:-&lt;BR /&gt;tPigCode_1_RESULT = foreach tPigLoad_1_RESULT generate $0 as name, $1 as id;&lt;BR /&gt;&lt;BR /&gt;Please tell me each component basic settings and also TPigCode query.&lt;BR /&gt;Thanks&lt;BR /&gt;Shikha Tyagi</description>
      <pubDate>Sat, 16 Nov 2024 12:09:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/parse-xml-elements-attribute-from-xml-file/m-p/2213773#M10906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: parse xml elements/attribute from xml file..</title>
      <link>https://community.qlik.com/t5/Talend-Studio/parse-xml-elements-attribute-from-xml-file/m-p/2213774#M10907</link>
      <description>Hi,
&lt;BR /&gt;Your PigQuery is good since you are using the good relation names (tPigCode_1_RESULT and tPigLoad_1_RESULT).
&lt;BR /&gt;But It's not the good way of parsing the XML. You would need to use the XMLLoader after registering it into your PIG script.
&lt;BR /&gt;Unfortunately, it's not yet possible in Talend. A festure request already have been opened in our JIRA for that.
&lt;BR /&gt;Regards,</description>
      <pubDate>Fri, 16 Nov 2012 15:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/parse-xml-elements-attribute-from-xml-file/m-p/2213774#M10907</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-16T15:17:50Z</dc:date>
    </item>
  </channel>
</rss>

