<?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: XML files compare and update in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/XML-files-compare-and-update/m-p/2298052#M70559</link>
    <description>Hello guy
&lt;BR /&gt;I see that the two input xml files have the same structure, so you use a tFileList to iterate the two xml file, then merge the rows on tUnite. Here is an example, please see screeshots.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
    <pubDate>Thu, 12 Mar 2009 07:04:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-03-12T07:04:30Z</dc:date>
    <item>
      <title>XML files compare and update</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-files-compare-and-update/m-p/2298051#M70558</link>
      <description>Hi,&lt;BR /&gt;I would like to compare to XML files and create a third XML file which is a "merge" of both files.&lt;BR /&gt;Is it possible with Talend?&lt;BR /&gt;First File is like:&lt;BR /&gt;&amp;lt;racine name="TEST01"&amp;gt;&lt;BR /&gt;	&amp;lt;node name="node1"&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"01"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"02"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="prix"&amp;gt;"10"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;	&amp;lt;/node&amp;gt;&lt;BR /&gt;	&amp;lt;node name="node2"&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"01"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"02"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="prix"&amp;gt;"10"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;	&amp;lt;/node&amp;gt;&lt;BR /&gt;	&amp;lt;node name="node3"&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"01"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"02"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="prix"&amp;gt;"10"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;	&amp;lt;/node&amp;gt;&lt;BR /&gt;&amp;lt;/racine&amp;gt;&lt;BR /&gt;Second one is like:&lt;BR /&gt;&amp;lt;!-- Created with Liquid XML Studio - FREE Community Edition 7.0.3.780 (&lt;A href="http://www.liquid-technologies.com" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.liquid-technologies.com&lt;/A&gt;) --&amp;gt;&lt;BR /&gt;&amp;lt;racine name="TEST01"&amp;gt;&lt;BR /&gt;	&amp;lt;node name="node1"&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"01"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"03"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="prix"&amp;gt;"10"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;	&amp;lt;/node&amp;gt;&lt;BR /&gt;	&amp;lt;node name="node3"&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"01"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"02"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"03"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="prix"&amp;gt;"10"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;	&amp;lt;/node&amp;gt;&lt;BR /&gt;	&amp;lt;node name="node4"&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"01"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"02"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="prix"&amp;gt;"20"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;	&amp;lt;/node&amp;gt;&lt;BR /&gt;&amp;lt;/racine&amp;gt;&lt;BR /&gt;Result must be like:&lt;BR /&gt;&amp;lt;racine name="TEST01"&amp;gt;&lt;BR /&gt;	&amp;lt;node name="node1"&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"01"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"02"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="prix"&amp;gt;"10"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;	&amp;lt;/node&amp;gt;&lt;BR /&gt;	&amp;lt;node name="node2"&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"01"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"02"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="prix"&amp;gt;"10"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;	&amp;lt;/node&amp;gt;&lt;BR /&gt;	&amp;lt;node name="node3"&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"01"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"02"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"03"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="prix"&amp;gt;"10"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;	&amp;lt;/node&amp;gt;&lt;BR /&gt;	&amp;lt;node name="node4"&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"01"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="couleur"&amp;gt;"02"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;		&amp;lt;propertie NAME="prix"&amp;gt;"20"&amp;lt;/propertie&amp;gt;&lt;BR /&gt;	&amp;lt;/node&amp;gt;&lt;BR /&gt;&amp;lt;/racine&amp;gt;</description>
      <pubDate>Sat, 16 Nov 2024 14:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-files-compare-and-update/m-p/2298051#M70558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: XML files compare and update</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-files-compare-and-update/m-p/2298052#M70559</link>
      <description>Hello guy
&lt;BR /&gt;I see that the two input xml files have the same structure, so you use a tFileList to iterate the two xml file, then merge the rows on tUnite. Here is an example, please see screeshots.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 12 Mar 2009 07:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-files-compare-and-update/m-p/2298052#M70559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-12T07:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: XML files compare and update</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-files-compare-and-update/m-p/2298053#M70560</link>
      <description>Thanks a lot Shong. 
&lt;BR /&gt;I got one more question. 
&lt;BR /&gt;Now, I would like to update the content of 2 elements if they exist in both files. 
&lt;BR /&gt;For instance, in file 1 I have: 
&lt;BR /&gt; &amp;lt;node name="node1"&amp;gt; 
&lt;BR /&gt; &amp;lt;propertie NAME="couleur1"&amp;gt;"01"&amp;lt;/propertie&amp;gt; 
&lt;BR /&gt; &amp;lt;propertie NAME="couleur2"&amp;gt;"02"&amp;lt;/propertie&amp;gt; 
&lt;BR /&gt; &amp;lt;propertie NAME="couleur3"&amp;gt;"03"&amp;lt;/propertie&amp;gt; 
&lt;BR /&gt; &amp;lt;propertie NAME="prix"&amp;gt;"10"&amp;lt;/propertie&amp;gt; 
&lt;BR /&gt; &amp;lt;/node&amp;gt; 
&lt;BR /&gt;In file 2, I have: 
&lt;BR /&gt; &amp;lt;node name="node1"&amp;gt; 
&lt;BR /&gt; &amp;lt;propertie NAME="couleur1"&amp;gt;"01"&amp;lt;/propertie&amp;gt; 
&lt;BR /&gt; &amp;lt;propertie NAME="couleur2"&amp;gt;"04"&amp;lt;/propertie&amp;gt; 
&lt;BR /&gt; &amp;lt;propertie NAME="prix"&amp;gt;"10"&amp;lt;/propertie&amp;gt; 
&lt;BR /&gt; &amp;lt;/node&amp;gt; 
&lt;BR /&gt;Result must be like: 
&lt;BR /&gt; &amp;lt;node name="node1"&amp;gt; 
&lt;BR /&gt; &amp;lt;propertie NAME="couleur1"&amp;gt;"01"&amp;lt;/propertie&amp;gt; 
&lt;BR /&gt; &amp;lt;propertie NAME="couleur2"&amp;gt;"04"&amp;lt;/propertie&amp;gt; 
&lt;BR /&gt; &amp;lt;propertie NAME="couleur3"&amp;gt;"03"&amp;lt;/propertie&amp;gt; 
&lt;BR /&gt; &amp;lt;propertie NAME="prix"&amp;gt;"10"&amp;lt;/propertie&amp;gt; 
&lt;BR /&gt; &amp;lt;/node&amp;gt;</description>
      <pubDate>Fri, 13 Mar 2009 09:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-files-compare-and-update/m-p/2298053#M70560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-03-13T09:24:04Z</dc:date>
    </item>
  </channel>
</rss>

