<?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: Producing XML with nested elements in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213896#M10974</link>
    <description>Hi&lt;BR /&gt;Yes. In Talend you can only have one loop element for each time.&lt;BR /&gt;For example, I have two loop elements in one xml file. One is rootA. The other is rootB.&lt;BR /&gt;You might create two subjobs for these two loop elements seperately.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
    <pubDate>Thu, 02 Aug 2012 02:25:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-02T02:25:23Z</dc:date>
    <item>
      <title>Producing XML with nested elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213895#M10973</link>
      <description>How would I go about producing an XML file that has nested elements?&lt;BR /&gt;In talend 4.2.4 I believe you can only have one loop element, so how do I iterate to produce multiple instances of sub elements.&lt;BR /&gt;In my case, the data is coming from a normalised database.&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 01 Aug 2012 17:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213895#M10973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-01T17:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Producing XML with nested elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213896#M10974</link>
      <description>Hi&lt;BR /&gt;Yes. In Talend you can only have one loop element for each time.&lt;BR /&gt;For example, I have two loop elements in one xml file. One is rootA. The other is rootB.&lt;BR /&gt;You might create two subjobs for these two loop elements seperately.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 02 Aug 2012 02:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213896#M10974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-02T02:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Producing XML with nested elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213897#M10975</link>
      <description>So I produce a file, then the second job reads the file and adds to it?&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 02 Aug 2012 10:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213897#M10975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-02T10:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Producing XML with nested elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213898#M10976</link>
      <description>Use tAdvancedFileOutputXML for output. Have an input for the main section and a separate input for each loop and connect to the tAdvancedFileOutputXML&lt;BR /&gt;The input's for the loop must have a field to reference the main section key element.</description>
      <pubDate>Thu, 02 Aug 2012 10:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213898#M10976</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-08-02T10:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Producing XML with nested elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213899#M10977</link>
      <description>Sorry I'm still not clear on this. My elements are nested, so it's not that I have more than one root element, I have to iterate within an iteration e.g.
&lt;BR /&gt;&amp;lt;CATALOGUE&amp;gt;
&lt;BR /&gt;&amp;lt;PRODUCT&amp;gt;A&amp;lt;SKU&amp;gt;1&amp;lt;/SKU&amp;gt;&amp;lt;SKU&amp;gt;2&amp;lt;/SKU&amp;gt;&amp;lt;/PRODUCT&amp;gt;
&lt;BR /&gt;&amp;lt;PRODUCT&amp;gt;A&amp;lt;SKU&amp;gt;1&amp;lt;/SKU&amp;gt;&amp;lt;SKU&amp;gt;2&amp;lt;/SKU&amp;gt;&amp;lt;/PRODUCT&amp;gt;
&lt;BR /&gt;&amp;lt;/CATALOGUE&amp;gt;
&lt;BR /&gt;So in the above example, one input drives &amp;lt;PRODUCT&amp;gt; and another iteration within that is required to produce the &amp;lt;SKU&amp;gt; elements. However, because they share the same root, and each input can only have one loop element, it doesn't seem possible.
&lt;BR /&gt;The closest I've got to that is using tFileOutputMSXML, but it doesn't reliably put the elements within the same structure as it seems designed for multiple root elements, not nested loops.</description>
      <pubDate>Mon, 20 Aug 2012 16:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213899#M10977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-20T16:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Producing XML with nested elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213900#M10978</link>
      <description>For detailed explanation of reading and processing XML file with multiple nested loops visit the blog post 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;&lt;A href="http://vikramtakkar.blogspot.in/2013/02/read-xml-having-multiple-nested-loops.html" rel="nofollow noopener noreferrer"&gt;http://vikramtakkar.blogspot.in/2013/02/read-xml-having-multiple-nested-loops.html&lt;/A&gt;&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 27 Feb 2013 06:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213900#M10978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-27T06:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Producing XML with nested elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213901#M10979</link>
      <description>Vikram,
&lt;BR /&gt;Your blog shows how to read an xml file with multiple nested loops, but it's not clear how to create that kind of XML.
&lt;BR /&gt;How do you go about producing that XML file in Talend from a one-to-many database?</description>
      <pubDate>Tue, 17 Dec 2013 21:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213901#M10979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-17T21:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Producing XML with nested elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213902#M10980</link>
      <description>I think this blog post may have what you are looking for.&lt;BR /&gt;&lt;A href="http://bekwam.blogspot.com/2011/09/xml-output-from-multiple-data-sources.html" rel="nofollow noopener noreferrer"&gt;http://bekwam.blogspot.com/2011/09/xml-output-from-multiple-data-sources.html&lt;/A&gt;</description>
      <pubDate>Wed, 15 Jan 2014 22:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Producing-XML-with-nested-elements/m-p/2213902#M10980</guid>
      <dc:creator>Swell</dc:creator>
      <dc:date>2014-01-15T22:05:08Z</dc:date>
    </item>
  </channel>
</rss>

