<?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: Insert nodes in a xml file using tWriteXMLfield or tXMLMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Insert-nodes-in-a-xml-file-using-tWriteXMLfield-or-tXMLMap/m-p/2229270#M20249</link>
    <description>Hi elelik 
&lt;BR /&gt;tXMLMap is the proper component for you to read data from a document or output a document. You need to re-create the node in the output document on tXMLMap component, see my screenshots, I am using Talend Open Studio For Data Integration v5.4.1 and it works well, I don't get the symbol problem. 
&lt;BR /&gt;Result on console: 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job test at 18:15 03/04/2014.&lt;BR /&gt; connecting to socket on port 3992&lt;BR /&gt; connected&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;addresse&amp;gt;&lt;BR /&gt;    &amp;lt;rue&amp;gt;rue1&amp;lt;/rue&amp;gt;&lt;BR /&gt;    &amp;lt;post_code&amp;gt;521000&amp;lt;/post_code&amp;gt;&lt;BR /&gt;  &amp;lt;/addresse&amp;gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;root&amp;gt;&amp;lt;person&amp;gt;&amp;lt;id&amp;gt;1&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;Shong&amp;lt;/name&amp;gt;&amp;lt;addresse&amp;gt;&amp;lt;rue&amp;gt;rue1&amp;lt;/rue&amp;gt;&amp;lt;post_code&amp;gt;521000&amp;lt;/post_code&amp;gt;&amp;lt;/addresse&amp;gt;&amp;lt;/person&amp;gt;&amp;lt;/root&amp;gt;&lt;BR /&gt; disconnected&lt;BR /&gt;Job test ended at 18:15 03/04/2014. &lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/674/131577_1.png" /&gt; 
&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/674/131577_2.png" /&gt;</description>
    <pubDate>Thu, 03 Apr 2014 11:19:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-03T11:19:56Z</dc:date>
    <item>
      <title>Insert nodes in a xml file using tWriteXMLfield or tXMLMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-nodes-in-a-xml-file-using-tWriteXMLfield-or-tXMLMap/m-p/2229266#M20245</link>
      <description>Hi, in my job i am extracting nodes from an xml file with tExtractXMLfield component (option get node)  and i would like to insert this node  in a new xml file using tWriteXMLfield.  Is it possible and how can i do it ?&lt;BR /&gt;thx</description>
      <pubDate>Mon, 10 Feb 2014 04:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-nodes-in-a-xml-file-using-tWriteXMLfield-or-tXMLMap/m-p/2229266#M20245</guid>
      <dc:creator>elelik</dc:creator>
      <dc:date>2014-02-10T04:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Insert nodes in a xml file using tWriteXMLfield or tXMLMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-nodes-in-a-xml-file-using-tWriteXMLfield-or-tXMLMap/m-p/2229267#M20246</link>
      <description>Hi, 
&lt;BR /&gt;If I understand you well, you can use tWriteXMLField to read an input XML file and extract the structure to insert it in defined fields of the output file directly. 
&lt;BR /&gt;Please see the related scenario in component reference 
&lt;A href="https://help.talend.com/search/all?query=tWriteXMLField&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tWriteXMLField&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://yutwg22796.i.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;cenario: Extracting the structure of an XML file and inserting it into the fields of a database table&lt;/A&gt;. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 11 Feb 2014 06:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-nodes-in-a-xml-file-using-tWriteXMLfield-or-tXMLMap/m-p/2229267#M20246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-11T06:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Insert nodes in a xml file using tWriteXMLfield or tXMLMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-nodes-in-a-xml-file-using-tWriteXMLfield-or-tXMLMap/m-p/2229268#M20247</link>
      <description>Hi Sabrina, thank you for your reply. But this is not exactly what I want. That's part of my job. 
&lt;BR /&gt; 
&lt;BR /&gt;tExtractXMLField -----&amp;gt; tMap ------&amp;gt;tjavaflex-------&amp;gt;tWriteXMLField or tXMLMap 
&lt;BR /&gt;From tExtracXMLField component i recieve single data like codcli = "12345" and complex data (nodes) like this 
&lt;BR /&gt;address = "&amp;lt;adresse&amp;gt; 
&lt;BR /&gt; &amp;lt;rue&amp;gt;1 avenue Lavenue&amp;lt;/rue&amp;gt; 
&lt;BR /&gt; &amp;lt;code postal&amp;gt;35001&amp;lt;/code postal&amp;gt; 
&lt;BR /&gt; &amp;lt;ville&amp;gt;Laville&amp;lt;/ville&amp;gt; 
&lt;BR /&gt; &amp;lt;/adresse&amp;gt;" 
&lt;BR /&gt;I can't do otherwrise because the xml in input is very complex and XPath don't give all datas as i want. 
&lt;BR /&gt;So the data flux recieve by my tWriteXMLField contain this two types of data. And i want using. From my tWriteXMLField or tXMLMap I want this xml. 
&lt;BR /&gt;&amp;lt;code client&amp;gt;12345&amp;lt;/code client&amp;gt; 
&lt;BR /&gt;&amp;lt;adresse&amp;gt; 
&lt;BR /&gt; &amp;lt;rue&amp;gt;1 avenue Lavenue&amp;lt;/rue&amp;gt; 
&lt;BR /&gt; &amp;lt;code postal&amp;gt;35001&amp;lt;/code postal&amp;gt; 
&lt;BR /&gt; &amp;lt;ville&amp;gt;Laville&amp;lt;/ville&amp;gt; 
&lt;BR /&gt;&amp;lt;/adresse&amp;gt; 
&lt;BR /&gt;how use variable "adress" for insert, merge this data structure in the xml file outing. I tried tXMLMap too using "Create as sub-element of taget node" option but "&amp;lt;" and "&amp;gt;" symbol are change in "&amp;amp;lt" and "&amp;amp;gt". How can I do this to have the result that i want. 
&lt;BR /&gt;thx</description>
      <pubDate>Wed, 12 Feb 2014 06:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-nodes-in-a-xml-file-using-tWriteXMLfield-or-tXMLMap/m-p/2229268#M20247</guid>
      <dc:creator>elelik</dc:creator>
      <dc:date>2014-02-12T06:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Insert nodes in a xml file using tWriteXMLfield or tXMLMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-nodes-in-a-xml-file-using-tWriteXMLfield-or-tXMLMap/m-p/2229269#M20248</link>
      <description>I have exactly the same problem. What is the recommended way to fulfill this requirement?</description>
      <pubDate>Thu, 03 Apr 2014 09:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-nodes-in-a-xml-file-using-tWriteXMLfield-or-tXMLMap/m-p/2229269#M20248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-03T09:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Insert nodes in a xml file using tWriteXMLfield or tXMLMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-nodes-in-a-xml-file-using-tWriteXMLfield-or-tXMLMap/m-p/2229270#M20249</link>
      <description>Hi elelik 
&lt;BR /&gt;tXMLMap is the proper component for you to read data from a document or output a document. You need to re-create the node in the output document on tXMLMap component, see my screenshots, I am using Talend Open Studio For Data Integration v5.4.1 and it works well, I don't get the symbol problem. 
&lt;BR /&gt;Result on console: 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job test at 18:15 03/04/2014.&lt;BR /&gt; connecting to socket on port 3992&lt;BR /&gt; connected&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;addresse&amp;gt;&lt;BR /&gt;    &amp;lt;rue&amp;gt;rue1&amp;lt;/rue&amp;gt;&lt;BR /&gt;    &amp;lt;post_code&amp;gt;521000&amp;lt;/post_code&amp;gt;&lt;BR /&gt;  &amp;lt;/addresse&amp;gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;root&amp;gt;&amp;lt;person&amp;gt;&amp;lt;id&amp;gt;1&amp;lt;/id&amp;gt;&amp;lt;name&amp;gt;Shong&amp;lt;/name&amp;gt;&amp;lt;addresse&amp;gt;&amp;lt;rue&amp;gt;rue1&amp;lt;/rue&amp;gt;&amp;lt;post_code&amp;gt;521000&amp;lt;/post_code&amp;gt;&amp;lt;/addresse&amp;gt;&amp;lt;/person&amp;gt;&amp;lt;/root&amp;gt;&lt;BR /&gt; disconnected&lt;BR /&gt;Job test ended at 18:15 03/04/2014. &lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/674/131577_1.png" /&gt; 
&lt;IMG src="https://community.talend.com/legacyfs/online/membersTempo/674/131577_2.png" /&gt;</description>
      <pubDate>Thu, 03 Apr 2014 11:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-nodes-in-a-xml-file-using-tWriteXMLfield-or-tXMLMap/m-p/2229270#M20249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-03T11:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Insert nodes in a xml file using tWriteXMLfield or tXMLMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-nodes-in-a-xml-file-using-tWriteXMLfield-or-tXMLMap/m-p/2229271#M20250</link>
      <description>Hi,
&lt;BR /&gt;Is it possible to use the previous&amp;nbsp;solution but without recreating the complete node.
&lt;BR /&gt;Example, to pass the root of "input.adresse" to a node "output.adresse" ?
&lt;BR /&gt;I have a complex&amp;nbsp;.xml (500 element) with a really bad&amp;nbsp;.xsd so I&amp;nbsp;am forced to do the mapping by hand, but If I could generate the main&amp;nbsp;complexElement before, this would be much faster.
&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Thu, 23 Feb 2017 10:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-nodes-in-a-xml-file-using-tWriteXMLfield-or-tXMLMap/m-p/2229271#M20250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-23T10:46:22Z</dc:date>
    </item>
  </channel>
</rss>

