<?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 export to xml with multiple loops in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/export-to-xml-with-multiple-loops/m-p/2339563#M107693</link>
    <description>I am trying to extract data from database to a xml file. There are multiple loops inside xml document. it is like below. I created a metadata based on the output xml file format. I am thinking I could use tAdvancedFileOutputXML. But I don't know how to map the data from database to the xml loops. Shall I split each loop to a small part, then map it from db to xml first? Then add all these small part together to a big file? 
&lt;BR /&gt;I appreciate if anybody could give me any idea on this. Thanks. 
&lt;BR /&gt; 
&lt;BR /&gt;&amp;lt;root&amp;gt; 
&lt;BR /&gt;&amp;lt;Header&amp;gt; 
&lt;BR /&gt; &amp;lt;MessageId&amp;gt;&amp;lt;/MessageId&amp;gt; 
&lt;BR /&gt;&amp;lt;/Header&amp;gt; 
&lt;BR /&gt;&amp;lt;contactinfo&amp;gt; 
&lt;BR /&gt; &amp;lt;contactHeader&amp;gt; 
&lt;BR /&gt; &amp;lt;contactId&amp;gt;&amp;lt;/contactId&amp;gt; 
&lt;BR /&gt; &amp;lt;/contactHeader&amp;gt; 
&lt;BR /&gt; &amp;lt;contactAddress&amp;gt; 
&lt;BR /&gt; &amp;lt;name&amp;gt;&amp;lt;/name&amp;gt; 
&lt;BR /&gt; &amp;lt;phone&amp;gt;&amp;lt;/phone&amp;gt; 
&lt;BR /&gt; &amp;lt;/contactAddress&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt; &amp;lt;contactAddress&amp;gt; 
&lt;BR /&gt; &amp;lt;name&amp;gt;&amp;lt;/name&amp;gt; 
&lt;BR /&gt; &amp;lt;phone&amp;gt;&amp;lt;/phone&amp;gt; 
&lt;BR /&gt; &amp;lt;/contactAddress&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt;&amp;lt;/contactinfo&amp;gt; 
&lt;BR /&gt;&amp;lt;contactinfo&amp;gt; 
&lt;BR /&gt; &amp;lt;contactHeader&amp;gt; 
&lt;BR /&gt; &amp;lt;contactId&amp;gt;&amp;lt;/contactId&amp;gt; 
&lt;BR /&gt; &amp;lt;/contactHeader&amp;gt; 
&lt;BR /&gt; &amp;lt;contactAddress&amp;gt; 
&lt;BR /&gt; &amp;lt;name&amp;gt;&amp;lt;/name&amp;gt; 
&lt;BR /&gt; &amp;lt;phone&amp;gt;&amp;lt;/phone&amp;gt; 
&lt;BR /&gt; &amp;lt;/contactAddress&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt; &amp;lt;contactAddress&amp;gt; 
&lt;BR /&gt; &amp;lt;name&amp;gt;&amp;lt;/name&amp;gt; 
&lt;BR /&gt; &amp;lt;phone&amp;gt;&amp;lt;/phone&amp;gt; 
&lt;BR /&gt; &amp;lt;/contactAddress&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt;&amp;lt;/contactinfo&amp;gt; 
&lt;BR /&gt;&amp;lt;/root&amp;gt;</description>
    <pubDate>Thu, 21 Mar 2013 21:43:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-21T21:43:24Z</dc:date>
    <item>
      <title>export to xml with multiple loops</title>
      <link>https://community.qlik.com/t5/Talend-Studio/export-to-xml-with-multiple-loops/m-p/2339563#M107693</link>
      <description>I am trying to extract data from database to a xml file. There are multiple loops inside xml document. it is like below. I created a metadata based on the output xml file format. I am thinking I could use tAdvancedFileOutputXML. But I don't know how to map the data from database to the xml loops. Shall I split each loop to a small part, then map it from db to xml first? Then add all these small part together to a big file? 
&lt;BR /&gt;I appreciate if anybody could give me any idea on this. Thanks. 
&lt;BR /&gt; 
&lt;BR /&gt;&amp;lt;root&amp;gt; 
&lt;BR /&gt;&amp;lt;Header&amp;gt; 
&lt;BR /&gt; &amp;lt;MessageId&amp;gt;&amp;lt;/MessageId&amp;gt; 
&lt;BR /&gt;&amp;lt;/Header&amp;gt; 
&lt;BR /&gt;&amp;lt;contactinfo&amp;gt; 
&lt;BR /&gt; &amp;lt;contactHeader&amp;gt; 
&lt;BR /&gt; &amp;lt;contactId&amp;gt;&amp;lt;/contactId&amp;gt; 
&lt;BR /&gt; &amp;lt;/contactHeader&amp;gt; 
&lt;BR /&gt; &amp;lt;contactAddress&amp;gt; 
&lt;BR /&gt; &amp;lt;name&amp;gt;&amp;lt;/name&amp;gt; 
&lt;BR /&gt; &amp;lt;phone&amp;gt;&amp;lt;/phone&amp;gt; 
&lt;BR /&gt; &amp;lt;/contactAddress&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt; &amp;lt;contactAddress&amp;gt; 
&lt;BR /&gt; &amp;lt;name&amp;gt;&amp;lt;/name&amp;gt; 
&lt;BR /&gt; &amp;lt;phone&amp;gt;&amp;lt;/phone&amp;gt; 
&lt;BR /&gt; &amp;lt;/contactAddress&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt;&amp;lt;/contactinfo&amp;gt; 
&lt;BR /&gt;&amp;lt;contactinfo&amp;gt; 
&lt;BR /&gt; &amp;lt;contactHeader&amp;gt; 
&lt;BR /&gt; &amp;lt;contactId&amp;gt;&amp;lt;/contactId&amp;gt; 
&lt;BR /&gt; &amp;lt;/contactHeader&amp;gt; 
&lt;BR /&gt; &amp;lt;contactAddress&amp;gt; 
&lt;BR /&gt; &amp;lt;name&amp;gt;&amp;lt;/name&amp;gt; 
&lt;BR /&gt; &amp;lt;phone&amp;gt;&amp;lt;/phone&amp;gt; 
&lt;BR /&gt; &amp;lt;/contactAddress&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt; &amp;lt;contactAddress&amp;gt; 
&lt;BR /&gt; &amp;lt;name&amp;gt;&amp;lt;/name&amp;gt; 
&lt;BR /&gt; &amp;lt;phone&amp;gt;&amp;lt;/phone&amp;gt; 
&lt;BR /&gt; &amp;lt;/contactAddress&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt;&amp;lt;/contactinfo&amp;gt; 
&lt;BR /&gt;&amp;lt;/root&amp;gt;</description>
      <pubDate>Thu, 21 Mar 2013 21:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/export-to-xml-with-multiple-loops/m-p/2339563#M107693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-21T21:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: export to xml with multiple loops</title>
      <link>https://community.qlik.com/t5/Talend-Studio/export-to-xml-with-multiple-loops/m-p/2339564#M107694</link>
      <description>Hi, &lt;BR /&gt;I think the component &lt;A href="https://help.talend.com/search/all?query=tXMLMap&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tXMLMap&lt;/A&gt; can meet your needs(multiple loops), please review the component reference and related scenarios at first, and then feel free post your issue on forum.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 25 Mar 2013 02:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/export-to-xml-with-multiple-loops/m-p/2339564#M107694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-25T02:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: export to xml with multiple loops</title>
      <link>https://community.qlik.com/t5/Talend-Studio/export-to-xml-with-multiple-loops/m-p/2339565#M107695</link>
      <description>Thanks for the document.&lt;BR /&gt;I looked through it. The examples are all input file is the xml file. My case is the output file is XML file.&lt;BR /&gt;When I use tXmlmap, my input is database, out put is  tAdvancedFileOutputXML. I couldn't see the tree in tXmlMap.&lt;BR /&gt;Do you have any example for tXmlMap with output is xml file?&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 25 Mar 2013 18:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/export-to-xml-with-multiple-loops/m-p/2339565#M107695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-25T18:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: export to xml with multiple loops</title>
      <link>https://community.qlik.com/t5/Talend-Studio/export-to-xml-with-multiple-loops/m-p/2339566#M107696</link>
      <description>Hi, 
&lt;BR /&gt;I think you should be familiar with the component tXMLMap firstly , there is the article about 
&lt;A href="https://help.talend.com/search/all?query=tXMLMap+operation&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tXMLMap operation&lt;/A&gt; with three chapters 
&lt;A href="https://help.talend.com/search/all?query=Using+the+document+type+to+create+the+XML+tree&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;Using the document type to create the XML tree&lt;/A&gt;, 
&lt;A href="https://help.talend.com/search/all?query=Defining+the+output+mode&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;Defining the output mode&lt;/A&gt; and 
&lt;A href="https://help.talend.com/search/all?query=Editing+the+XML+tree+schema&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;Editing the XML tree schema&lt;/A&gt;. 
&lt;BR /&gt;In addition, tAdvancedFileOutputXML only support one loop element in it and cannot be used together with tXMLMap. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 26 Mar 2013 02:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/export-to-xml-with-multiple-loops/m-p/2339566#M107696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-26T02:48:56Z</dc:date>
    </item>
  </channel>
</rss>

