<?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 XPath concat multiple nodes in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/XPath-concat-multiple-nodes/m-p/2332414#M101299</link>
    <description>I have the following xml as source.I need to concate the subEl1 and subEl2.&lt;BR /&gt;&lt;BR /&gt;&amp;lt;item&amp;gt;&lt;BR /&gt;    &amp;lt;element1&amp;gt;el1&amp;lt;/element1&amp;gt;&lt;BR /&gt;    &amp;lt;element2&amp;gt;el2&amp;lt;/element2&amp;gt;&lt;BR /&gt;    &amp;lt;element3&amp;gt;el3&amp;lt;/element3&amp;gt;&lt;BR /&gt;    &amp;lt;element4&amp;gt;&lt;BR /&gt;        &amp;lt;subEl1&amp;gt;subel1a&amp;lt;/subEl1&amp;gt;&lt;BR /&gt;        &amp;lt;subEl2&amp;gt;subel2a&amp;lt;/subEl2&amp;gt;&lt;BR /&gt;    &amp;lt;/element4&amp;gt;&lt;BR /&gt;    &amp;lt;element4&amp;gt;&lt;BR /&gt;        &amp;lt;subEl1&amp;gt;subel1b&amp;lt;/subEl1&amp;gt;&lt;BR /&gt;        &amp;lt;subEl2&amp;gt;subel2b&amp;lt;/subEl2&amp;gt;&lt;BR /&gt;    &amp;lt;/element4&amp;gt;&lt;BR /&gt;&amp;lt;/item&amp;gt;&lt;BR /&gt;The output should be "subel1a subel2a"</description>
    <pubDate>Sat, 16 Nov 2024 12:32:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:32:17Z</dc:date>
    <item>
      <title>XPath concat multiple nodes</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XPath-concat-multiple-nodes/m-p/2332414#M101299</link>
      <description>I have the following xml as source.I need to concate the subEl1 and subEl2.&lt;BR /&gt;&lt;BR /&gt;&amp;lt;item&amp;gt;&lt;BR /&gt;    &amp;lt;element1&amp;gt;el1&amp;lt;/element1&amp;gt;&lt;BR /&gt;    &amp;lt;element2&amp;gt;el2&amp;lt;/element2&amp;gt;&lt;BR /&gt;    &amp;lt;element3&amp;gt;el3&amp;lt;/element3&amp;gt;&lt;BR /&gt;    &amp;lt;element4&amp;gt;&lt;BR /&gt;        &amp;lt;subEl1&amp;gt;subel1a&amp;lt;/subEl1&amp;gt;&lt;BR /&gt;        &amp;lt;subEl2&amp;gt;subel2a&amp;lt;/subEl2&amp;gt;&lt;BR /&gt;    &amp;lt;/element4&amp;gt;&lt;BR /&gt;    &amp;lt;element4&amp;gt;&lt;BR /&gt;        &amp;lt;subEl1&amp;gt;subel1b&amp;lt;/subEl1&amp;gt;&lt;BR /&gt;        &amp;lt;subEl2&amp;gt;subel2b&amp;lt;/subEl2&amp;gt;&lt;BR /&gt;    &amp;lt;/element4&amp;gt;&lt;BR /&gt;&amp;lt;/item&amp;gt;&lt;BR /&gt;The output should be "subel1a subel2a"</description>
      <pubDate>Sat, 16 Nov 2024 12:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XPath-concat-multiple-nodes/m-p/2332414#M101299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: XPath concat multiple nodes</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XPath-concat-multiple-nodes/m-p/2332415#M101300</link>
      <description>Hi
&lt;BR /&gt;Use a tFileInputXml to extract the records from the xml file and concate the two columns into one column on tMap, please see my screenshots.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 01 Dec 2011 02:50:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XPath-concat-multiple-nodes/m-p/2332415#M101300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-01T02:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: XPath concat multiple nodes</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XPath-concat-multiple-nodes/m-p/2332416#M101301</link>
      <description>Thanks Shong.There are some case where the sub element occurence is more than two or in some with one.What will i do in this scenario? 
&lt;BR /&gt;&amp;lt;item&amp;gt; 
&lt;BR /&gt; &amp;lt;element1&amp;gt;el1&amp;lt;/element1&amp;gt; 
&lt;BR /&gt; &amp;lt;element2&amp;gt;el2&amp;lt;/element2&amp;gt; 
&lt;BR /&gt; &amp;lt;element3&amp;gt;el3&amp;lt;/element3&amp;gt; 
&lt;BR /&gt; &amp;lt;element4&amp;gt; 
&lt;BR /&gt; &amp;lt;subEl1&amp;gt;subel1a&amp;lt;/subEl1&amp;gt; 
&lt;BR /&gt; &amp;lt;subEl2&amp;gt;subel2a&amp;lt;/subEl2&amp;gt; 
&lt;BR /&gt; &amp;lt;subEl3&amp;gt;subel3a&amp;lt;/subEl3&amp;gt; 
&lt;BR /&gt; &amp;lt;/element4&amp;gt; 
&lt;BR /&gt; &amp;lt;element4&amp;gt; 
&lt;BR /&gt; &amp;lt;subEl1&amp;gt;subel1b&amp;lt;/subEl1&amp;gt; 
&lt;BR /&gt; &amp;lt;subEl2&amp;gt;subel2b&amp;lt;/subEl2&amp;gt; 
&lt;BR /&gt; &amp;lt;/element4&amp;gt; 
&lt;BR /&gt;&amp;lt;element4&amp;gt; 
&lt;BR /&gt; &amp;lt;subEl1&amp;gt;subel1b&amp;lt;/subEl1&amp;gt; 
&lt;BR /&gt; &amp;lt;/element4&amp;gt; 
&lt;BR /&gt;&amp;lt;/item&amp;gt;</description>
      <pubDate>Thu, 01 Dec 2011 16:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XPath-concat-multiple-nodes/m-p/2332416#M101301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-01T16:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: XPath concat multiple nodes</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XPath-concat-multiple-nodes/m-p/2332417#M101302</link>
      <description>Hi 
&lt;BR /&gt;You should extract all the fields from the xml file, that means you always extract the max number of fields, maybe some of fields could be empty in output because the element occurence is more than two or in some with one. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 02 Dec 2011 01:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XPath-concat-multiple-nodes/m-p/2332417#M101302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-02T01:10:43Z</dc:date>
    </item>
  </channel>
</rss>

