<?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 with several loops in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/XML-with-several-loops/m-p/2354217#M120242</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt; 
&lt;P&gt;I need help to develop a job that generates a multi-loops XML.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Basically&lt;/P&gt; 
&lt;P&gt;the "decla" tag is repeated several times (loop) and contains the output 3 others loop-tags :&amp;nbsp;"souscripteur", "assure" and "beneficiaire" (in yellow here after)&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xml structure.PNG" style="width: 537px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrpN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148122iFF073B0DF937673E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrpN.png" alt="0683p000009LrpN.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;All the Talend Components support only one definited loop.&lt;/P&gt; 
&lt;P&gt;How can i do to obtain that structure ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks a lot for your answers&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Tatiana&lt;/P&gt;</description>
    <pubDate>Fri, 01 Dec 2017 17:46:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-01T17:46:10Z</dc:date>
    <item>
      <title>XML with several loops</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-with-several-loops/m-p/2354217#M120242</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt; 
&lt;P&gt;I need help to develop a job that generates a multi-loops XML.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Basically&lt;/P&gt; 
&lt;P&gt;the "decla" tag is repeated several times (loop) and contains the output 3 others loop-tags :&amp;nbsp;"souscripteur", "assure" and "beneficiaire" (in yellow here after)&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xml structure.PNG" style="width: 537px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrpN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148122iFF073B0DF937673E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrpN.png" alt="0683p000009LrpN.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;All the Talend Components support only one definited loop.&lt;/P&gt; 
&lt;P&gt;How can i do to obtain that structure ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks a lot for your answers&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Tatiana&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 17:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-with-several-loops/m-p/2354217#M120242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-01T17:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: XML with several loops</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-with-several-loops/m-p/2354218#M120243</link>
      <description>&lt;P&gt;There are several ways to do this....&lt;/P&gt;
&lt;P&gt;1) Use the Talend Data Mapper. But that is only available to the Enterprise Edition users....and is a bit funky if you are using it for the first time.&lt;BR /&gt;2) Use a bit of Java. Unfortunately the tXMLMap just won't cover this requirement on its own. But what you can do is create your base XML structure using a tXMLMap and then add to it using some Java (....my favourite approach).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) Similar to the last approach, but instead of writing Java code to manipulate and add to DOM objects, you build your base XML structure and then build your sub-XML structures (your loops), convert everything to Strings and then carry out a find and replace to build up your final XML structure.&lt;BR /&gt;&lt;BR /&gt;To be honest, they are all quite tricky at first. But once you figure out the structure and the method, it is actually quite methodical.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 19:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-with-several-loops/m-p/2354218#M120243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-01T19:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: XML with several loops</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-with-several-loops/m-p/2354219#M120244</link>
      <description>Hello Rhall. 
&lt;BR /&gt;Thanks for solutions. The first one would not be possible because i have to stay in a data integration context. 
&lt;BR /&gt;So i'll try the second one on mondey and leave a message in any case. 
&lt;BR /&gt;Thanks Again for your help . 
&lt;BR /&gt;Tatiana</description>
      <pubDate>Fri, 01 Dec 2017 21:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-with-several-loops/m-p/2354219#M120244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-01T21:02:53Z</dc:date>
    </item>
  </channel>
</rss>

