<?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 tXMLMap drops repeated child elements only copies first child in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-drops-repeated-child-elements-only-copies-first-child/m-p/2217106#M12837</link>
    <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;I have a complex XML structure with repeated child nodes, e.g. simple example, multiple email addresses (below).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The structure is the same on input and output.&amp;nbsp; The goal is to copy all elements across.&lt;/P&gt; 
&lt;P&gt;when I do this only the first child of each repeated element is copied across. Below, that would be only the first email address, the others are dropped.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So, that is the simple case, I actually want to modify some of the element content on the parent level (e.g name), but can't get a simple copy.&amp;nbsp;&amp;nbsp;Any ideas?&amp;nbsp; Am I missing something about tXMLMap (does it not do this simple case).&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Should I just write an XSLT?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;lt;person&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;name&amp;gt;name goes here&amp;lt;/name&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;emails_addresses&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;email_address&amp;gt;a@b.c&amp;lt;/&lt;SPAN&gt;email_address&lt;/SPAN&gt;&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;&lt;SPAN&gt;email_address&lt;/SPAN&gt;&amp;gt;a@b.c&amp;lt;/&lt;SPAN&gt;email_address&lt;/SPAN&gt;&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;&lt;SPAN&gt;email_address&lt;/SPAN&gt;&amp;gt;a@b.c&amp;lt;/&lt;SPAN&gt;email_address&lt;/SPAN&gt;&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;/emails_addresses&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;/person&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Dec 2018 23:07:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-06T23:07:41Z</dc:date>
    <item>
      <title>tXMLMap drops repeated child elements only copies first child</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-drops-repeated-child-elements-only-copies-first-child/m-p/2217106#M12837</link>
      <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;I have a complex XML structure with repeated child nodes, e.g. simple example, multiple email addresses (below).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The structure is the same on input and output.&amp;nbsp; The goal is to copy all elements across.&lt;/P&gt; 
&lt;P&gt;when I do this only the first child of each repeated element is copied across. Below, that would be only the first email address, the others are dropped.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So, that is the simple case, I actually want to modify some of the element content on the parent level (e.g name), but can't get a simple copy.&amp;nbsp;&amp;nbsp;Any ideas?&amp;nbsp; Am I missing something about tXMLMap (does it not do this simple case).&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Should I just write an XSLT?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;lt;person&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;name&amp;gt;name goes here&amp;lt;/name&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;emails_addresses&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;email_address&amp;gt;a@b.c&amp;lt;/&lt;SPAN&gt;email_address&lt;/SPAN&gt;&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;&lt;SPAN&gt;email_address&lt;/SPAN&gt;&amp;gt;a@b.c&amp;lt;/&lt;SPAN&gt;email_address&lt;/SPAN&gt;&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;&lt;SPAN&gt;email_address&lt;/SPAN&gt;&amp;gt;a@b.c&amp;lt;/&lt;SPAN&gt;email_address&lt;/SPAN&gt;&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;/emails_addresses&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;lt;/person&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 23:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-drops-repeated-child-elements-only-copies-first-child/m-p/2217106#M12837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-06T23:07:41Z</dc:date>
    </item>
  </channel>
</rss>

