<?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: [resolved] How to insert a xml node to an existing xml file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-a-xml-node-to-an-existing-xml-file/m-p/2215268#M11754</link>
    <description>Hi 
&lt;BR /&gt;You can try the 'append the source xml file' option on tAdvancedOutputXMLFile component, here is an simple example in topic: 
&lt;A href="https://community.talend.com/t5/Design-and-Development/Extract-and-aggregate-data-from-2-tables-1-to-many-relationship/td-p/96223" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Extract-and-aggregate-data-from-2-tables-1-to-many-relationship/td-p/96223&lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Thu, 14 Apr 2011 02:48:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-04-14T02:48:24Z</dc:date>
    <item>
      <title>[resolved] How to insert a xml node to an existing xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-a-xml-node-to-an-existing-xml-file/m-p/2215267#M11753</link>
      <description>Hi there,&lt;BR /&gt;I am new to Talend.&lt;BR /&gt;I have a task to merge two xml file:&lt;BR /&gt;- Xml File #1&lt;BR /&gt;&amp;lt;root&amp;gt;&lt;BR /&gt;  &amp;lt;row&amp;gt;&lt;BR /&gt;    &amp;lt;column1&amp;gt;test&amp;lt;/column1&amp;gt;&lt;BR /&gt;    &amp;lt;column2&amp;gt;test&amp;lt;/column2&amp;gt;&lt;BR /&gt;    &amp;lt;column3&amp;gt;test&amp;lt;/column3&amp;gt;&lt;BR /&gt;  &amp;lt;/row&amp;gt;&lt;BR /&gt; &amp;lt;row1&amp;gt;&lt;BR /&gt;    &amp;lt;column1&amp;gt;test&amp;lt;/column1&amp;gt;&lt;BR /&gt;    &amp;lt;column2&amp;gt;test&amp;lt;/column2&amp;gt;&lt;BR /&gt;    &amp;lt;column3&amp;gt;test&amp;lt;/column3&amp;gt;&lt;BR /&gt;  &amp;lt;/row1&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;/root&amp;gt;&lt;BR /&gt;&lt;BR /&gt;-XML File #2&lt;BR /&gt;&amp;lt;another_root&amp;gt;&lt;BR /&gt;&amp;lt;header&amp;gt;&amp;lt;/header&amp;gt;&lt;BR /&gt;  &amp;lt;content&amp;gt;&lt;BR /&gt;    &amp;lt;element1&amp;gt;&lt;BR /&gt;      &amp;lt;subelement1&amp;gt;&amp;lt;/subelement1&amp;gt;&lt;BR /&gt;      &amp;lt;subelement2&amp;gt;&amp;lt;/subelement2&amp;gt;&lt;BR /&gt;    &amp;lt;/element1&amp;gt;&lt;BR /&gt;    &amp;lt;element2&amp;gt;&lt;BR /&gt;      &amp;lt;subelement1&amp;gt;&amp;lt;/subelement1&amp;gt;&lt;BR /&gt;      &amp;lt;subelement2&amp;gt;&amp;lt;/subelement2&amp;gt;&lt;BR /&gt;    &amp;lt;/element2&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;  &amp;lt;/content&amp;gt;&lt;BR /&gt;&amp;lt;/another_root&amp;gt;&lt;BR /&gt;so what I want to achieve is to grab "root" element from XML file #1 and insert it to underneath of element2.&lt;BR /&gt;In other words.....&lt;BR /&gt;&lt;BR /&gt;&amp;lt;another_root&amp;gt;&lt;BR /&gt;&amp;lt;header&amp;gt;&amp;lt;/header&amp;gt;&lt;BR /&gt;  &amp;lt;content&amp;gt;&lt;BR /&gt;    &amp;lt;element1&amp;gt;&lt;BR /&gt;      &amp;lt;subelement1&amp;gt;&amp;lt;/subelement1&amp;gt;&lt;BR /&gt;      &amp;lt;subelement2&amp;gt;&amp;lt;/subelement2&amp;gt;&lt;BR /&gt;    &amp;lt;/element1&amp;gt;&lt;BR /&gt;    &amp;lt;element2&amp;gt;&lt;BR /&gt;      &amp;lt;subelement1&amp;gt;&amp;lt;/subelement1&amp;gt;&lt;BR /&gt;      &amp;lt;subelement2&amp;gt;&amp;lt;/subelement2&amp;gt;&lt;BR /&gt;    &amp;lt;/element2&amp;gt;&lt;BR /&gt;...                           &amp;lt;--- root element of xml file #1 goes here&lt;BR /&gt;  &amp;lt;/content&amp;gt;&lt;BR /&gt;&amp;lt;/another_root&amp;gt;&lt;BR /&gt;&lt;BR /&gt;I researched all xml related components and could not figure out how to do this.&lt;BR /&gt;Please let me how it can be resolved.  Thank you in advance.</description>
      <pubDate>Sat, 16 Nov 2024 12:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-a-xml-node-to-an-existing-xml-file/m-p/2215267#M11753</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T12:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to insert a xml node to an existing xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-a-xml-node-to-an-existing-xml-file/m-p/2215268#M11754</link>
      <description>Hi 
&lt;BR /&gt;You can try the 'append the source xml file' option on tAdvancedOutputXMLFile component, here is an simple example in topic: 
&lt;A href="https://community.talend.com/t5/Design-and-Development/Extract-and-aggregate-data-from-2-tables-1-to-many-relationship/td-p/96223" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Extract-and-aggregate-data-from-2-tables-1-to-many-relationship/td-p/96223&lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 14 Apr 2011 02:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-a-xml-node-to-an-existing-xml-file/m-p/2215268#M11754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-14T02:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to insert a xml node to an existing xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-a-xml-node-to-an-existing-xml-file/m-p/2215269#M11755</link>
      <description>Shong,
&lt;BR /&gt;I appreciate your help. It worked like a charm. 
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Jong</description>
      <pubDate>Thu, 14 Apr 2011 15:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-a-xml-node-to-an-existing-xml-file/m-p/2215269#M11755</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-04-14T15:20:27Z</dc:date>
    </item>
  </channel>
</rss>

