<?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 merge multiple xml files with same schema into one through talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/merge-multiple-xml-files-with-same-schema-into-one-through/m-p/2351148#M117861</link>
    <description>&lt;P&gt;&lt;FONT color="#222426"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;I have a talend job which runs for huge dataset and create an xml at the end .In order to avoid memory issue ,i split the xml into batches of 100 each ,depends on number of books in the dataset.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#222426"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;lets say i have 300 books,so after processing of job ,3 files are created 1.xml,2.xml and 3.xml all contains data with same schema. Now i need to combine the xml into one xml which seems to be difficult to implement in talend for complex schema's.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#222426"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;My job looks like&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;&amp;nbsp;tfileList--iterate--&amp;gt;tFileInputXml--merge--&amp;gt;tUnite---main---&amp;gt;tAdvancedFileOutputXml&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#222426"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;For simple schema it works fine as show below&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;&amp;lt;?xml version="1.0"?&amp;gt;[/font][/size][/color]&lt;BR /&gt;&amp;lt;x:books xmlns:x="urn:books"&amp;gt;[/font][/size][/color]&lt;BR /&gt;   &amp;lt;book id="bk005"&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;author&amp;gt;Writer&amp;lt;/author&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;title&amp;gt;The First Book&amp;lt;/title&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;genre&amp;gt;Fiction&amp;lt;/genre&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;price&amp;gt;44.95&amp;lt;/price&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;pub_date&amp;gt;2000-10-01&amp;lt;/pub_date&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;review&amp;gt;An amazing story of nothing.&amp;lt;/review&amp;gt;[/font][/size][/color]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   &amp;lt;/book&amp;gt;[/font][/size][/color]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   &amp;lt;book id="bk006"&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;author&amp;gt;Poet&amp;lt;/author&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;title&amp;gt;The Poet's First Poem&amp;lt;/title&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;genre&amp;gt;Poem&amp;lt;/genre&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;price&amp;gt;24.95&amp;lt;/price&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;review&amp;gt;Least poetic poems.&amp;lt;/review&amp;gt;[/font][/size][/color]&lt;BR /&gt;   &amp;lt;/book&amp;gt;[/font][/size][/color]&lt;BR /&gt;&amp;lt;/x:books&amp;gt;[/font][/size][/color]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If i change the xml as shown below ,it will be difficult to think because we can have only one loop element&lt;BR /&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0"?&amp;gt;[/font][/size][/color]&lt;BR /&gt;&amp;lt;x:books xmlns:x="urn:books"&amp;gt;[/font][/size][/color]&lt;BR /&gt;   &amp;lt;book id="bk001"&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;author&amp;gt;Writer&amp;lt;/author&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;title&amp;gt;The First Book&amp;lt;/title&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;genre&amp;gt;Fiction&amp;lt;/genre&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;price&amp;gt;44.95&amp;lt;/price&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;pub_date&amp;gt;2000-10-01&amp;lt;/pub_date&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;review&amp;gt;An amazing story of nothing.&amp;lt;/review&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;         &amp;lt;total_value&amp;gt;10&amp;lt;/total_value&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;/distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;         &amp;lt;total_value&amp;gt;20&amp;lt;/total_value&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;/distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;         &amp;lt;total_value&amp;gt;10&amp;lt;/total_value&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;/distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;   &amp;lt;/book&amp;gt;[/font][/size][/color]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   &amp;lt;book id="bk002"&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;author&amp;gt;Poet&amp;lt;/author&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;title&amp;gt;The Poet's First Poem&amp;lt;/title&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;genre&amp;gt;Poem&amp;lt;/genre&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;price&amp;gt;24.95&amp;lt;/price&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;review&amp;gt;Least poetic poems.&amp;lt;/review&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;         &amp;lt;total_value&amp;gt;210&amp;lt;/total_value&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;/distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;         &amp;lt;total_value&amp;gt;310&amp;lt;/total_value&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;/distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;         &amp;lt;total_value&amp;gt;410&amp;lt;/total_value&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;/distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;   &amp;lt;/book&amp;gt;[/font][/size][/color]&lt;BR /&gt;&amp;lt;/x:books&amp;gt;[/font][/size][/color]&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#222426"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;The xml is more complex ,but i need to implement this ,please help me with this&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2016 19:37:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-17T19:37:37Z</dc:date>
    <item>
      <title>merge multiple xml files with same schema into one through talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/merge-multiple-xml-files-with-same-schema-into-one-through/m-p/2351148#M117861</link>
      <description>&lt;P&gt;&lt;FONT color="#222426"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;I have a talend job which runs for huge dataset and create an xml at the end .In order to avoid memory issue ,i split the xml into batches of 100 each ,depends on number of books in the dataset.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#222426"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;lets say i have 300 books,so after processing of job ,3 files are created 1.xml,2.xml and 3.xml all contains data with same schema. Now i need to combine the xml into one xml which seems to be difficult to implement in talend for complex schema's.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#222426"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;My job looks like&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;&amp;nbsp;tfileList--iterate--&amp;gt;tFileInputXml--merge--&amp;gt;tUnite---main---&amp;gt;tAdvancedFileOutputXml&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#222426"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;For simple schema it works fine as show below&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;&amp;lt;?xml version="1.0"?&amp;gt;[/font][/size][/color]&lt;BR /&gt;&amp;lt;x:books xmlns:x="urn:books"&amp;gt;[/font][/size][/color]&lt;BR /&gt;   &amp;lt;book id="bk005"&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;author&amp;gt;Writer&amp;lt;/author&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;title&amp;gt;The First Book&amp;lt;/title&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;genre&amp;gt;Fiction&amp;lt;/genre&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;price&amp;gt;44.95&amp;lt;/price&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;pub_date&amp;gt;2000-10-01&amp;lt;/pub_date&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;review&amp;gt;An amazing story of nothing.&amp;lt;/review&amp;gt;[/font][/size][/color]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   &amp;lt;/book&amp;gt;[/font][/size][/color]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   &amp;lt;book id="bk006"&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;author&amp;gt;Poet&amp;lt;/author&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;title&amp;gt;The Poet's First Poem&amp;lt;/title&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;genre&amp;gt;Poem&amp;lt;/genre&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;price&amp;gt;24.95&amp;lt;/price&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;review&amp;gt;Least poetic poems.&amp;lt;/review&amp;gt;[/font][/size][/color]&lt;BR /&gt;   &amp;lt;/book&amp;gt;[/font][/size][/color]&lt;BR /&gt;&amp;lt;/x:books&amp;gt;[/font][/size][/color]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If i change the xml as shown below ,it will be difficult to think because we can have only one loop element&lt;BR /&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0"?&amp;gt;[/font][/size][/color]&lt;BR /&gt;&amp;lt;x:books xmlns:x="urn:books"&amp;gt;[/font][/size][/color]&lt;BR /&gt;   &amp;lt;book id="bk001"&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;author&amp;gt;Writer&amp;lt;/author&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;title&amp;gt;The First Book&amp;lt;/title&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;genre&amp;gt;Fiction&amp;lt;/genre&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;price&amp;gt;44.95&amp;lt;/price&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;pub_date&amp;gt;2000-10-01&amp;lt;/pub_date&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;review&amp;gt;An amazing story of nothing.&amp;lt;/review&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;         &amp;lt;total_value&amp;gt;10&amp;lt;/total_value&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;/distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;         &amp;lt;total_value&amp;gt;20&amp;lt;/total_value&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;/distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;         &amp;lt;total_value&amp;gt;10&amp;lt;/total_value&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;/distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;   &amp;lt;/book&amp;gt;[/font][/size][/color]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   &amp;lt;book id="bk002"&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;author&amp;gt;Poet&amp;lt;/author&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;title&amp;gt;The Poet's First Poem&amp;lt;/title&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;genre&amp;gt;Poem&amp;lt;/genre&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;price&amp;gt;24.95&amp;lt;/price&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;review&amp;gt;Least poetic poems.&amp;lt;/review&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;         &amp;lt;total_value&amp;gt;210&amp;lt;/total_value&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;/distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;         &amp;lt;total_value&amp;gt;310&amp;lt;/total_value&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;/distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;         &amp;lt;total_value&amp;gt;410&amp;lt;/total_value&amp;gt;[/font][/size][/color]&lt;BR /&gt;      &amp;lt;/distributions&amp;gt;[/font][/size][/color]&lt;BR /&gt;   &amp;lt;/book&amp;gt;[/font][/size][/color]&lt;BR /&gt;&amp;lt;/x:books&amp;gt;[/font][/size][/color]&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#222426"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial,"&gt;The xml is more complex ,but i need to implement this ,please help me with this&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 19:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/merge-multiple-xml-files-with-same-schema-into-one-through/m-p/2351148#M117861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-17T19:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: merge multiple xml files with same schema into one through talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/merge-multiple-xml-files-with-same-schema-into-one-through/m-p/2351149#M117862</link>
      <description>Hi,&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;tAdvancedFileOutputXML don't support multiple loop element?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;Please take a look at component?&lt;A href="https://help.talend.com/search/all?query=tXMLMap" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tXMLMap&lt;/A&gt;&amp;nbsp;which i&lt;FONT size="2"&gt;&lt;FONT face="noto," helvetica=""&gt;s an advanced component fine-tuned for transforming and routing XML data flow (data of the&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto," helvetica=""&gt;&lt;B&gt;Document&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto," helvetica=""&gt;&amp;nbsp;type), especially when processing numerous XML data sources, with or without flat data to be joined.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto," helvetica=""&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;[font=noto, Helvetica, Arial, sans-serif]&lt;FONT size="2"&gt;Sabrina&lt;/FONT&gt;[/font]</description>
      <pubDate>Mon, 21 Mar 2016 03:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/merge-multiple-xml-files-with-same-schema-into-one-through/m-p/2351149#M117862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-21T03:26:18Z</dc:date>
    </item>
  </channel>
</rss>

