<?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: Need to Split xml in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Need-to-Split-xml/m-p/2311356#M82403</link>
    <description>First try to extract only header table internalid using tmssqlinput. 
&lt;BR /&gt;Connect it to tFlowtoIterate component and store the internal id in a global variable. 
&lt;BR /&gt; 
&lt;BR /&gt;Take out iterate link from tFlowToIterate and connect to your tMsSqlInput_2 (as shown in your job)component ,where you can use parameterised internal id for joinng query with detail table. 
&lt;BR /&gt; 
&lt;BR /&gt;Also use the parameterized variable for your output file name. No need to use split property.</description>
    <pubDate>Wed, 01 Nov 2017 07:22:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-01T07:22:26Z</dc:date>
    <item>
      <title>Need to Split xml</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-Split-xml/m-p/2311355#M82402</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt; 
&lt;P&gt;I am new to Talend, I have a requirement as I have to read data from Header and Details table and read those data into xml file. my Details table can have multiple records for a particular Header data.While sending the XML, I need to split the XML file based on the recors (for each Header records, need to send separate file and assign the file name from the field from Header table named XmlFile name as well).&lt;/P&gt; 
&lt;P&gt;My table data looks like&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table Structure.JPG" style="width: 380px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrZP.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137782i2BA6073E189A9061/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrZP.jpg" alt="0683p000009LrZP.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I have used a Job with tMssqlInput --&amp;gt; tMap--&amp;gt; tAdvancedFileOutputXML.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="JobDesign.JPG" style="width: 516px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lre4.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128761i8B9537905C87768E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lre4.jpg" alt="0683p000009Lre4.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;I have created a metadata for the xml file and given the header node as group element and Line element as loop element. and set the split property of the tAdvancedfile outputxml with 1 record I am getting the output as&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="AfterSplitwith1Rec.JPG" style="width: 399px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lre9.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155910i864E39F3946969FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lre9.jpg" alt="0683p000009Lre9.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;if I will not set the split property the out put will be&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="BeforeSplit.JPG" style="width: 387px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrVS.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141834i4A366CAC0A7E7726/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrVS.jpg" alt="0683p000009LrVS.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But I need the out put as below:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ExpectedXML.JPG" style="width: 384px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LreE.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143781i75C31ADBF0755904/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LreE.jpg" alt="0683p000009LreE.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;could you some one please help me to achive this.&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 12:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-Split-xml/m-p/2311355#M82402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-31T12:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Split xml</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-Split-xml/m-p/2311356#M82403</link>
      <description>First try to extract only header table internalid using tmssqlinput. 
&lt;BR /&gt;Connect it to tFlowtoIterate component and store the internal id in a global variable. 
&lt;BR /&gt; 
&lt;BR /&gt;Take out iterate link from tFlowToIterate and connect to your tMsSqlInput_2 (as shown in your job)component ,where you can use parameterised internal id for joinng query with detail table. 
&lt;BR /&gt; 
&lt;BR /&gt;Also use the parameterized variable for your output file name. No need to use split property.</description>
      <pubDate>Wed, 01 Nov 2017 07:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-Split-xml/m-p/2311356#M82403</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-01T07:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Split xml</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-Split-xml/m-p/2311357#M82404</link>
      <description>&lt;P&gt;Hi Chirgal,&lt;/P&gt;&lt;P&gt;Yes, its worked for me...&amp;nbsp; Thanks a lot for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 14:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-Split-xml/m-p/2311357#M82404</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-03T14:51:08Z</dc:date>
    </item>
  </channel>
</rss>

