<?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 XML-Input with multiple xpath loop in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/XML-Input-with-multiple-xpath-loop/m-p/2327707#M97067</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;i have to read from a XML-file with more than one "Main" Loop.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="positions.JPG" style="width: 600px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LraE.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138445iED2A71FD0CD67423/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LraE.jpg" alt="0683p000009LraE.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;One is Positions with 3 rows, Ordernumber 100,101,102 and the other is Foot with to Charge , 1 and 2&lt;/P&gt; 
&lt;P&gt;My Problem is when i set the absolute xpath to Positions i get all porsitions but only the first Charge.&lt;/P&gt; 
&lt;P&gt;If i set it to charges i get the two Charge but only the first Position.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xpath.JPG" style="width: 911px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lrly.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134370iF0EFD8CBA2A60EA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lrly.jpg" alt="0683p000009Lrly.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is it possible to get it both and the write it to a similar XML as the Input file?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2017 15:31:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-13T15:31:15Z</dc:date>
    <item>
      <title>XML-Input with multiple xpath loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-Input-with-multiple-xpath-loop/m-p/2327707#M97067</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;i have to read from a XML-file with more than one "Main" Loop.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="positions.JPG" style="width: 600px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LraE.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138445iED2A71FD0CD67423/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LraE.jpg" alt="0683p000009LraE.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;One is Positions with 3 rows, Ordernumber 100,101,102 and the other is Foot with to Charge , 1 and 2&lt;/P&gt; 
&lt;P&gt;My Problem is when i set the absolute xpath to Positions i get all porsitions but only the first Charge.&lt;/P&gt; 
&lt;P&gt;If i set it to charges i get the two Charge but only the first Position.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xpath.JPG" style="width: 911px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lrly.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134370iF0EFD8CBA2A60EA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lrly.jpg" alt="0683p000009Lrly.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is it possible to get it both and the write it to a similar XML as the Input file?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 15:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-Input-with-multiple-xpath-loop/m-p/2327707#M97067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-13T15:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: XML-Input with multiple xpath loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-Input-with-multiple-xpath-loop/m-p/2327708#M97068</link>
      <description>&lt;P&gt;OK, to start I should say that this can be painful. It is not pleasant to work with XML like this with any product. However Talend does have the Talend Data Mapper in the Enterprise Edition. If you have that, use it. It isn't like ANY of the other Talend components, can be a real pain to find documentation, but once you get used to it, it really does help. If you are using the Open Source product, you are left with using multiple tExtractXMLField components. I gave an explanation as to how to do this here (&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCpR0CAK" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Complex-XML-with-multiple-loops-into-one-output/td-p/36488&lt;/A&gt;). At some point I will put together a mini tutorial, but you will learn a lot if you try this out yourself from the description I have given. As I said, it is not pretty, but once you get to grips with it, it isn't so hard.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 00:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-Input-with-multiple-xpath-loop/m-p/2327708#M97068</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T00:02:28Z</dc:date>
    </item>
  </channel>
</rss>

