<?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: How to Read XML File using tFileInputXML component - Not Reading data properly in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-Read-XML-File-using-tFileInputXML-component-Not-Reading/m-p/2299419#M71767</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPgaAAG"&gt;@JeevithaS&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Your XML contains multiple loops under a parent which is not possible to read through tFileInputXML.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hence you have to use tXMLMap or Talend Data Mapper.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please follow the job flow as attached and let us know if it is serving your requirement.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Make sure you save the input to a file then remove all the new lines as Document type will read total data as one line. In tXMLMap you can define two loops for header and detail and you can mention same in tXMLMap Source Loop Tree.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XML_6.JPG" style="width: 616px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5gj.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157483iDEB9DA1835EB6C1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5gj.jpg" alt="0683p000009M5gj.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XML_5.JPG" style="width: 451px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5NX.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157690i616E434444BE4D64/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5NX.jpg" alt="0683p000009M5NX.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XML_4.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5W0.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157642i929090E8BE9E9013/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5W0.jpg" alt="0683p000009M5W0.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XML_3.JPG" style="width: 550px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5go.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141410i125E4D512C1C905A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5go.jpg" alt="0683p000009M5go.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XML_2.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5gt.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151216i9F4BC25064314886/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5gt.jpg" alt="0683p000009M5gt.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XML_1.JPG" style="width: 589px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5g0.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143977i84A8280C1EF2E292/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5g0.jpg" alt="0683p000009M5g0.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks and Regards,&lt;/P&gt; 
&lt;P&gt;Subhadip&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2019 16:38:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-25T16:38:46Z</dc:date>
    <item>
      <title>How to Read XML File using tFileInputXML component - Not Reading data properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Read-XML-File-using-tFileInputXML-component-Not-Reading/m-p/2299418#M71766</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;I need to read the XML data using tFileInputXml Component. But, I am not getting how to give Xpath queries.&lt;/P&gt; 
&lt;P&gt;Here is the tag tree of my data.&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;&amp;lt;p&amp;gt;
&amp;lt;table border='1' width='90%' align='center' summary='Script output'&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;th scope="col"&amp;gt;ColumnName1&amp;lt;/th&amp;gt;
&amp;lt;th scope="col"&amp;gt;ColumnName2&amp;lt;/th&amp;gt;
&amp;lt;th scope="col"&amp;gt;ColumnName3&amp;lt;/th&amp;gt;
&amp;lt;th...remaining header tags&amp;lt;/th&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td&amp;gt;ABCDEFGH ENERGIA LTDA.&amp;lt;/td&amp;gt;
&amp;lt;td&amp;gt;APPROVED&amp;lt;/td&amp;gt;
&amp;lt;td&amp;gt;IVY XYZ&amp;lt;/td&amp;gt;
&amp;lt;td&amp;gt;6097&amp;lt;/td&amp;gt;
&amp;lt;td .. remainig td's&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;/p&amp;gt;&lt;/PRE&gt; 
&lt;P&gt;Please suggest me how to fill in the columns for the xml component. I did try it as in the below screenshot and other ways also. But data is not aligned in expected rows and columns (It is reading only first td for each row&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="readXMLData.PNG" style="width: 626px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5R8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136393i24451116F0674920/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5R8.png" alt="0683p000009M5R8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I am new to Talend. So please help me out in this.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Read-XML-File-using-tFileInputXML-component-Not-Reading/m-p/2299418#M71766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read XML File using tFileInputXML component - Not Reading data properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Read-XML-File-using-tFileInputXML-component-Not-Reading/m-p/2299419#M71767</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPgaAAG"&gt;@JeevithaS&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Your XML contains multiple loops under a parent which is not possible to read through tFileInputXML.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hence you have to use tXMLMap or Talend Data Mapper.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please follow the job flow as attached and let us know if it is serving your requirement.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Make sure you save the input to a file then remove all the new lines as Document type will read total data as one line. In tXMLMap you can define two loops for header and detail and you can mention same in tXMLMap Source Loop Tree.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XML_6.JPG" style="width: 616px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5gj.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157483iDEB9DA1835EB6C1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5gj.jpg" alt="0683p000009M5gj.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XML_5.JPG" style="width: 451px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5NX.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157690i616E434444BE4D64/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5NX.jpg" alt="0683p000009M5NX.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XML_4.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5W0.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157642i929090E8BE9E9013/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5W0.jpg" alt="0683p000009M5W0.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XML_3.JPG" style="width: 550px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5go.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141410i125E4D512C1C905A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5go.jpg" alt="0683p000009M5go.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XML_2.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5gt.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151216i9F4BC25064314886/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5gt.jpg" alt="0683p000009M5gt.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XML_1.JPG" style="width: 589px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5g0.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143977i84A8280C1EF2E292/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5g0.jpg" alt="0683p000009M5g0.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks and Regards,&lt;/P&gt; 
&lt;P&gt;Subhadip&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 16:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Read-XML-File-using-tFileInputXML-component-Not-Reading/m-p/2299419#M71767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-25T16:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read XML File using tFileInputXML component - Not Reading data properly</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Read-XML-File-using-tFileInputXML-component-Not-Reading/m-p/2299420#M71768</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPZoAAO"&gt;@subhadip13&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your response.&lt;/P&gt; 
&lt;P&gt;I tried in your way. But The Data is not getting aligned in the proper way when i am trying to insert in Excel file. Same as before, each data is storing as single row. I need to transpose the data as one complete tr loop should be stored as one row in excel file with each td value as cell value for that row.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need to loop tr node and each td value inside the tr node should be mapped to different column names which we will define as schema for output component. I hope you got it.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Anyway, I am able to pull the data using tHttpTableInput. Thank you so much for your effort &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 16:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Read-XML-File-using-tFileInputXML-component-Not-Reading/m-p/2299420#M71768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-02T16:08:20Z</dc:date>
    </item>
  </channel>
</rss>

