<?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: Combine multiple XML documents (as rows) into a single XML document in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-XML-documents-as-rows-into-a-single-XML/m-p/2311208#M82270</link>
    <description>What I've got is a document with lots of levels, but is is basically like this: 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;Container&amp;gt;&lt;BR /&gt;  &amp;lt;Content&amp;gt;...&amp;lt;/Content&amp;gt;&lt;BR /&gt;  &amp;lt;Content&amp;gt;...&amp;lt;/Content&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;  &amp;lt;Content&amp;gt;...&amp;lt;/Content&amp;gt;&lt;BR /&gt;&amp;lt;/Container&amp;gt;&lt;/PRE&gt; 
&lt;BR /&gt;What I want to do is filter the &amp;lt;Content&amp;gt; element that have been created based on their sub-elements. 
&lt;BR /&gt;So I use tExtractXMLField to break the document into individual document objects for each &amp;lt;Content&amp;gt; element, and filter them using tFilterRow. That works fine. 
&lt;BR /&gt;Now I want to put them back together again. The problem seems to be there isn't an equivalent of the "extract node" flag in the tWriteXMLField - it only operates on strings, so if you write a Document type, it extracts the string value and applies that rather than inserting the document as a node. 
&lt;BR /&gt;I've managed to cludge it together using a tJavaFlex in an inappropriate way that breaks the "rules" of talend and isn't exactly supportable.</description>
    <pubDate>Wed, 13 Mar 2013 12:49:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-13T12:49:00Z</dc:date>
    <item>
      <title>Combine multiple XML documents (as rows) into a single XML document</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-XML-documents-as-rows-into-a-single-XML/m-p/2311206#M82268</link>
      <description>I have a job where I've transformed a document with tXMLMap creating a single output, and then split it into rows using tExtractField to extract a node - I then need to filter this, and finally recombine into a single output document.
&lt;BR /&gt;What I can't find is any talend component that will allow me to take a Document column and add it to an XML document as a node.
&lt;BR /&gt;tWriteXMLField and tXMLMap treat nodes as strings, so that's no use.
&lt;BR /&gt;There must be a way of doing this surely!</description>
      <pubDate>Tue, 12 Mar 2013 10:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-XML-documents-as-rows-into-a-single-XML/m-p/2311206#M82268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-12T10:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Combine multiple XML documents (as rows) into a single XML document</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-XML-documents-as-rows-into-a-single-XML/m-p/2311207#M82269</link>
      <description>On tXMLMap, the output is a Document node, and Document node can be generated directly as a XML file with tFileOutputXML component. 
&lt;BR /&gt;why you say it treat nodes as strings? If I don't understand you well, can you please explain it more? 
&lt;BR /&gt;Thank you! 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 13 Mar 2013 02:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-XML-documents-as-rows-into-a-single-XML/m-p/2311207#M82269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-13T02:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Combine multiple XML documents (as rows) into a single XML document</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-XML-documents-as-rows-into-a-single-XML/m-p/2311208#M82270</link>
      <description>What I've got is a document with lots of levels, but is is basically like this: 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;Container&amp;gt;&lt;BR /&gt;  &amp;lt;Content&amp;gt;...&amp;lt;/Content&amp;gt;&lt;BR /&gt;  &amp;lt;Content&amp;gt;...&amp;lt;/Content&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;  &amp;lt;Content&amp;gt;...&amp;lt;/Content&amp;gt;&lt;BR /&gt;&amp;lt;/Container&amp;gt;&lt;/PRE&gt; 
&lt;BR /&gt;What I want to do is filter the &amp;lt;Content&amp;gt; element that have been created based on their sub-elements. 
&lt;BR /&gt;So I use tExtractXMLField to break the document into individual document objects for each &amp;lt;Content&amp;gt; element, and filter them using tFilterRow. That works fine. 
&lt;BR /&gt;Now I want to put them back together again. The problem seems to be there isn't an equivalent of the "extract node" flag in the tWriteXMLField - it only operates on strings, so if you write a Document type, it extracts the string value and applies that rather than inserting the document as a node. 
&lt;BR /&gt;I've managed to cludge it together using a tJavaFlex in an inappropriate way that breaks the "rules" of talend and isn't exactly supportable.</description>
      <pubDate>Wed, 13 Mar 2013 12:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-XML-documents-as-rows-into-a-single-XML/m-p/2311208#M82270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-13T12:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Combine multiple XML documents (as rows) into a single XML document</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-XML-documents-as-rows-into-a-single-XML/m-p/2311209#M82271</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;What I've got is a document with lots of levels, but is is basically like this:&lt;BR /&gt;&lt;PRE&gt;&amp;lt;Container&amp;gt;&lt;BR /&gt;  &amp;lt;Content&amp;gt;...&amp;lt;/Content&amp;gt;&lt;BR /&gt;  &amp;lt;Content&amp;gt;...&amp;lt;/Content&amp;gt;&lt;BR /&gt;...&lt;BR /&gt;  &amp;lt;Content&amp;gt;...&amp;lt;/Content&amp;gt;&lt;BR /&gt;&amp;lt;/Container&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;What I want to do is filter the &amp;lt;Content&amp;gt; element that have been created based on their sub-elements.&lt;BR /&gt;So I use tExtractXMLField to break the document into individual document objects for each &amp;lt;Content&amp;gt; element, and filter them using tFilterRow. That works fine.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;If the incoming row is a document node, you can use tXMLMap and filter the rows directly on it, instead of extracting the rows and filter them using tFilterRow, the output is still a document node. see my screenshot. 
&lt;BR /&gt;Shong 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME44.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146628i25BC213B2D6F5A22/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME44.png" alt="0683p000009ME44.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 14 Mar 2013 03:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-XML-documents-as-rows-into-a-single-XML/m-p/2311209#M82271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-14T03:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Combine multiple XML documents (as rows) into a single XML document</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-XML-documents-as-rows-into-a-single-XML/m-p/2311210#M82272</link>
      <description>&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;. I am beginner in Talend &amp;nbsp;I want tutorial&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 28 Oct 2015 04:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-XML-documents-as-rows-into-a-single-XML/m-p/2311210#M82272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-28T04:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Combine multiple XML documents (as rows) into a single XML document</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-XML-documents-as-rows-into-a-single-XML/m-p/2311211#M82273</link>
      <description>Hi amolkhandekar92,
&lt;BR /&gt;Please take a look at this component reference 
&lt;A href="https://help.talend.com/search/all?query=tXMLMap&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tXMLMap&lt;/A&gt; with related scenarios.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 03 Nov 2015 10:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-XML-documents-as-rows-into-a-single-XML/m-p/2311211#M82273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-03T10:41:01Z</dc:date>
    </item>
  </channel>
</rss>

