<?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: Read first/last row of XML in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372851#M135641</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;My sincere apologies as I read the requirement slightly different way. If you want to read the line numbers for each column, the best way is to add a sequence and transfer the data to an additional line number column.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I have shown it for a delimited file but the theory remains same for xml file also.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lyuo.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133574i3422DBD17FA625CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lyuo.png" alt="0683p000009Lyuo.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jul 2018 07:28:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-27T07:28:24Z</dc:date>
    <item>
      <title>Read first/last row of XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372847#M135637</link>
      <description>&lt;P&gt;How to read first and last row of XML file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 06:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372847#M135637</guid>
      <dc:creator>aashish_21nov</dc:creator>
      <dc:date>2018-07-27T06:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Read first/last row of XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372848#M135638</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;While reading the file, you can pass the&amp;nbsp;((Integer)globalMap.get("tFileInputXML_1_NB_LINE")) parameter also to the subsequent data flow and use this value to pick the first and last rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 07:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372848#M135638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-27T07:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Read first/last row of XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372849#M135639</link>
      <description>&lt;P&gt;where should I pass NB_LINE&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 07:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372849#M135639</guid>
      <dc:creator>aashish_21nov</dc:creator>
      <dc:date>2018-07-27T07:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Read first/last row of XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372850#M135640</link>
      <description>&lt;P&gt;or is there any way to read a file in reverse order like the last record then second last and so on.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 07:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372850#M135640</guid>
      <dc:creator>aashish_21nov</dc:creator>
      <dc:date>2018-07-27T07:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Read first/last row of XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372851#M135641</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;My sincere apologies as I read the requirement slightly different way. If you want to read the line numbers for each column, the best way is to add a sequence and transfer the data to an additional line number column.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I have shown it for a delimited file but the theory remains same for xml file also.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lyuo.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133574i3422DBD17FA625CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lyuo.png" alt="0683p000009Lyuo.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 07:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372851#M135641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-27T07:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Read first/last row of XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372852#M135642</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Once you got the line numbers for each row, you can choose the data in any order using a tsortrow and tfilterrow components.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 07:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372852#M135642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-27T07:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Read first/last row of XML</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372853#M135643</link>
      <description>&lt;P&gt;actually, we are just finding the shortest/smartest way to validate XML files.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 07:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-first-last-row-of-XML/m-p/2372853#M135643</guid>
      <dc:creator>aashish_21nov</dc:creator>
      <dc:date>2018-07-27T07:38:03Z</dc:date>
    </item>
  </channel>
</rss>

