<?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: How to append different row inputs in the same XML hierarchy? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-append-different-row-inputs-in-the-same-XML-hierarchy/m-p/2236472#M25174</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Unfortunately your current XML structure is not in a recommended way. You are trying to add both Asset type and Sub Asset type under same XML element "text" as sub elements. When your target system is trying to read the data, how will they differentiate the values of the data based on XML elements. In the current data structure everything is revolving under same XML element "text".&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M10a.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137965iB78D259AF875A3CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M10a.png" alt="0683p000009M10a.png" /&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;Similarly you need to name all the sub elements according to the data it is containing. Once the rename is correct, you will get more flexibility to read them.&amp;nbsp;Without doing that, if you are trying to merge them, your target systems will have tough time to manage the data.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also when the code is moved to production, your support team will find it very difficult to support the XML structure as every element is being&amp;nbsp; same structure and name.&amp;nbsp;I would highly recommend you to make these changes else it will create issues during later stages of your project.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Coming to the grouping part, you can convert the data to single XML layer format and read them as input to one more tXMLmap. In the second xml map, you can chnage the grouping at higher level. In this way, you can merge all data to single record.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
    <pubDate>Mon, 12 Nov 2018 12:41:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-12T12:41:34Z</dc:date>
    <item>
      <title>How to append different row inputs in the same XML hierarchy?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-append-different-row-inputs-in-the-same-XML-hierarchy/m-p/2236469#M25171</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt; 
&lt;P&gt;I have the ff. components:&lt;/P&gt; 
&lt;P&gt;tMap -&amp;gt; tAdvanceFileOutputXML and here's the set-up:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMap-XML.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0zd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136566i12ABADB76B163CAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0zd.png" alt="0683p000009M0zd.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;How can I achieve the output below?&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Current Output:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;PRE&gt;&amp;lt;textTabs&amp;gt;
          &amp;lt;text&amp;gt;
            &amp;lt;tabLabel&amp;gt;Hardware - Dell (Computers) Precision text&amp;lt;/tabLabel&amp;gt;
            &amp;lt;value&amp;gt;Hardware - Dell (Computers) Precision&amp;lt;/value&amp;gt;
            &amp;lt;locked&amp;gt;true&amp;lt;/locked&amp;gt;
		  &amp;lt;/text&amp;gt;	
		  &amp;lt;text&amp;gt;
            &amp;lt;tabLabel&amp;gt;Computer text&amp;lt;/tabLabel&amp;gt;
            &amp;lt;value&amp;gt;Computer&amp;lt;/value&amp;gt;
            &amp;lt;locked&amp;gt;true&amp;lt;/locked&amp;gt;
		  &amp;lt;/text&amp;gt;
&amp;lt;/textTabs&amp;gt;				  
&amp;lt;textTabs&amp;gt;
          &amp;lt;text&amp;gt;
            &amp;lt;tabLabel&amp;gt;Hardware - Headset, Plantronics Other  text&amp;lt;/tabLabel&amp;gt;
            &amp;lt;value&amp;gt;Hardware - Headset, Plantronics Other &amp;lt;/value&amp;gt;
            &amp;lt;locked&amp;gt;true&amp;lt;/locked&amp;gt;
          &amp;lt;/text&amp;gt;
		  &amp;lt;text&amp;gt;
            &amp;lt;tabLabel&amp;gt;Headset text&amp;lt;/tabLabel&amp;gt;
            &amp;lt;value&amp;gt;Headset&amp;lt;/value&amp;gt;
            &amp;lt;locked&amp;gt;true&amp;lt;/locked&amp;gt;
          &amp;lt;/text&amp;gt;
&amp;lt;/textTabs&amp;gt;&lt;/PRE&gt; 
&lt;P&gt;&lt;STRONG&gt;Expected Output:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;PRE&gt;&amp;lt;textTabs&amp;gt;
  &amp;lt;text&amp;gt;
    &amp;lt;tabLabel&amp;gt;Hardware - Dell (Computers) Precision text&amp;lt;/tabLabel&amp;gt;
    &amp;lt;value&amp;gt;Hardware - Dell (Computers) Precision&amp;lt;/value&amp;gt;
    &amp;lt;locked&amp;gt;true&amp;lt;/locked&amp;gt;
  &amp;lt;/text&amp;gt;	
  &amp;lt;text&amp;gt;
    &amp;lt;tabLabel&amp;gt;Computer text&amp;lt;/tabLabel&amp;gt;
    &amp;lt;value&amp;gt;Computer&amp;lt;/value&amp;gt;
    &amp;lt;locked&amp;gt;true&amp;lt;/locked&amp;gt;
  &amp;lt;/text&amp;gt;
  &amp;lt;text&amp;gt;
    &amp;lt;tabLabel&amp;gt;Hardware - Headset, Plantronics Other  text&amp;lt;/tabLabel&amp;gt;
     &amp;lt;value&amp;gt;Hardware - Headset, Plantronics Other &amp;lt;/value&amp;gt;
     &amp;lt;locked&amp;gt;true&amp;lt;/locked&amp;gt;
  &amp;lt;/text&amp;gt;
  &amp;lt;text&amp;gt;
    &amp;lt;tabLabel&amp;gt;Headset text&amp;lt;/tabLabel&amp;gt;
     &amp;lt;value&amp;gt;Headset&amp;lt;/value&amp;gt;
     &amp;lt;locked&amp;gt;true&amp;lt;/locked&amp;gt;
  &amp;lt;/text&amp;gt;
&amp;lt;/textTabs&amp;gt;	&lt;/PRE&gt; 
&lt;P&gt;Can you help me achieve the Expected Output?&lt;BR /&gt;Thank you.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-append-different-row-inputs-in-the-same-XML-hierarchy/m-p/2236469#M25171</guid>
      <dc:creator>jerownimow</dc:creator>
      <dc:date>2024-11-16T07:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to append different row inputs in the same XML hierarchy?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-append-different-row-inputs-in-the-same-XML-hierarchy/m-p/2236470#M25172</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please provide 10 input records with column headers in a csv file format so that we will get better understanding of data and testing also will be easy? Since at target side, you are planning to loop the input data from same row, it would be a good idea to bring them as separate records before converting them to XML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Sat, 10 Nov 2018 18:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-append-different-row-inputs-in-the-same-XML-hierarchy/m-p/2236470#M25172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-10T18:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to append different row inputs in the same XML hierarchy?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-append-different-row-inputs-in-the-same-XML-hierarchy/m-p/2236471#M25173</link>
      <description>&lt;P&gt;Hi nikhilthampi,&lt;/P&gt; 
&lt;P&gt;Thank you for your feedback. Please see attached sample records and the full XML structure.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;&amp;lt;!--expected XML output--&amp;gt;&lt;BR /&gt;&amp;lt;envelopeDefinition&amp;gt;
  &amp;lt;accountId&amp;gt;&amp;lt;/accountId&amp;gt;
  &amp;lt;status&amp;gt;&amp;lt;/status&amp;gt;
  &amp;lt;templateId&amp;gt;&amp;lt;/templateId&amp;gt;
  &amp;lt;templateRoles&amp;gt;
    &amp;lt;templateRole&amp;gt;
      &amp;lt;roleName&amp;gt;Employee&amp;lt;/roleName&amp;gt;
      &amp;lt;tabs&amp;gt;
        &amp;lt;textTabs&amp;gt;
          &amp;lt;text&amp;gt;
            &amp;lt;tabLabel&amp;gt;Employee's First Name&amp;lt;/tabLabel&amp;gt; &amp;lt;!--from 1st XML file--&amp;gt;
            &amp;lt;value&amp;gt;Jerome,&amp;lt;/value&amp;gt;
            &amp;lt;locked/&amp;gt;
          &amp;lt;/text&amp;gt;
          &amp;lt;text&amp;gt;
            &amp;lt;tabLabel&amp;gt;HKG2333 text&amp;lt;/tabLabel&amp;gt; &amp;lt;!--from appended XML file--&amp;gt;
            &amp;lt;value&amp;gt;HKG2333&amp;lt;/value&amp;gt;
            &amp;lt;locked&amp;gt;true&amp;lt;/locked&amp;gt;
            &amp;lt;required&amp;gt;false&amp;lt;/required&amp;gt;
            &amp;lt;senderRequired&amp;gt;true&amp;lt;/senderRequired&amp;gt;
            &amp;lt;xPosition&amp;gt;73&amp;lt;/xPosition&amp;gt;
            &amp;lt;yPosition&amp;gt;91&amp;lt;/yPosition&amp;gt;
          &amp;lt;/text&amp;gt;
          &amp;lt;text&amp;gt;
            &amp;lt;tabLabel&amp;gt;USA2222 text&amp;lt;/tabLabel&amp;gt; &amp;lt;!--from appended XML file--&amp;gt;
            &amp;lt;value&amp;gt;USA2222 &amp;lt;/value&amp;gt;
            &amp;lt;locked&amp;gt;true&amp;lt;/locked&amp;gt;
            &amp;lt;required&amp;gt;false&amp;lt;/required&amp;gt;
            &amp;lt;senderRequired&amp;gt;true&amp;lt;/senderRequired&amp;gt;
            &amp;lt;xPosition&amp;gt;73&amp;lt;/xPosition&amp;gt;
            &amp;lt;yPosition&amp;gt;107&amp;lt;/yPosition&amp;gt;
            &amp;lt;documentId&amp;gt;1&amp;lt;/documentId&amp;gt;
            &amp;lt;pageNumber&amp;gt;2&amp;lt;/pageNumber&amp;gt;
            &amp;lt;font&amp;gt;arial&amp;lt;/font&amp;gt;
            &amp;lt;fontSize&amp;gt;Size8&amp;lt;/fontSize&amp;gt;
            &amp;lt;shared&amp;gt;true&amp;lt;/shared&amp;gt;
          &amp;lt;/text&amp;gt;
          &amp;lt;text&amp;gt;
            &amp;lt;tabLabel&amp;gt;Computer text&amp;lt;/tabLabel&amp;gt; &amp;lt;!--from appended XML file--&amp;gt;
            &amp;lt;value&amp;gt;Computer&amp;lt;/value&amp;gt;
            &amp;lt;locked&amp;gt;true&amp;lt;/locked&amp;gt;
            &amp;lt;required&amp;gt;false&amp;lt;/required&amp;gt;
            &amp;lt;senderRequired&amp;gt;true&amp;lt;/senderRequired&amp;gt;
            &amp;lt;xPosition&amp;gt;130&amp;lt;/xPosition&amp;gt;
            &amp;lt;yPosition&amp;gt;91&amp;lt;/yPosition&amp;gt;
          &amp;lt;/text&amp;gt;
          &amp;lt;text&amp;gt;
            &amp;lt;tabLabel&amp;gt;Headset text&amp;lt;/tabLabel&amp;gt; &amp;lt;!--from appended XML file--&amp;gt;
            &amp;lt;value&amp;gt;Headset &amp;lt;/value&amp;gt;
            &amp;lt;locked&amp;gt;true&amp;lt;/locked&amp;gt;
            &amp;lt;required&amp;gt;false&amp;lt;/required&amp;gt;
            &amp;lt;senderRequired&amp;gt;true&amp;lt;/senderRequired&amp;gt;
            &amp;lt;xPosition&amp;gt;130&amp;lt;/xPosition&amp;gt;
            &amp;lt;yPosition&amp;gt;107&amp;lt;/yPosition&amp;gt;
            &amp;lt;documentId&amp;gt;1&amp;lt;/documentId&amp;gt;
            &amp;lt;pageNumber&amp;gt;2&amp;lt;/pageNumber&amp;gt;
            &amp;lt;font&amp;gt;arial&amp;lt;/font&amp;gt;
            &amp;lt;fontSize&amp;gt;Size8&amp;lt;/fontSize&amp;gt;
            &amp;lt;shared&amp;gt;true&amp;lt;/shared&amp;gt;
          &amp;lt;/text&amp;gt;		  
          &amp;lt;text&amp;gt;
            &amp;lt;tabLabel&amp;gt;Hardware - Computer - Dell (Computers) Precision,  5520 text&amp;lt;/tabLabel&amp;gt; &amp;lt;!--from appended XML file--&amp;gt;
            &amp;lt;value&amp;gt;Hardware - Computer - Dell (Computers) Precision,  5520&amp;lt;/value&amp;gt;
            &amp;lt;locked&amp;gt;true&amp;lt;/locked&amp;gt;
            &amp;lt;required&amp;gt;false&amp;lt;/required&amp;gt;
            &amp;lt;senderRequired&amp;gt;true&amp;lt;/senderRequired&amp;gt;
            &amp;lt;xPosition&amp;gt;211&amp;lt;/xPosition&amp;gt;
            &amp;lt;yPosition&amp;gt;91&amp;lt;/yPosition&amp;gt;
          &amp;lt;/text&amp;gt;
          &amp;lt;text&amp;gt;
            &amp;lt;tabLabel&amp;gt;Hardware - Headset, Plantronics Other, Voyager Focus UC  text&amp;lt;/tabLabel&amp;gt; &amp;lt;!--from appended XML file--&amp;gt;
            &amp;lt;value&amp;gt;Hardware - Headset, Plantronics Other, Voyager Focus UC &amp;lt;/value&amp;gt;
            &amp;lt;locked&amp;gt;true&amp;lt;/locked&amp;gt;
            &amp;lt;required&amp;gt;false&amp;lt;/required&amp;gt;
            &amp;lt;senderRequired&amp;gt;true&amp;lt;/senderRequired&amp;gt;
            &amp;lt;xPosition&amp;gt;211&amp;lt;/xPosition&amp;gt;
            &amp;lt;yPosition&amp;gt;107&amp;lt;/yPosition&amp;gt;
            &amp;lt;documentId&amp;gt;1&amp;lt;/documentId&amp;gt;
            &amp;lt;pageNumber&amp;gt;2&amp;lt;/pageNumber&amp;gt;
            &amp;lt;font&amp;gt;arial&amp;lt;/font&amp;gt;
            &amp;lt;fontSize&amp;gt;Size8&amp;lt;/fontSize&amp;gt;
            &amp;lt;shared&amp;gt;true&amp;lt;/shared&amp;gt;
          &amp;lt;/text&amp;gt; 
        &amp;lt;/textTabs&amp;gt;
    &amp;lt;/templateRole&amp;gt;
  &amp;lt;/templateRoles&amp;gt;
&amp;lt;/envelopeDefinition&amp;gt;&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also,I already tried the separate records before converting, but it only considered the last XML file that was generated.&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Separate records.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0bh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140773i09B1996A78A9ADF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0bh.png" alt="0683p000009M0bh.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lu6l"&gt;test_file.csv&lt;/A&gt;</description>
      <pubDate>Sun, 11 Nov 2018 15:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-append-different-row-inputs-in-the-same-XML-hierarchy/m-p/2236471#M25173</guid>
      <dc:creator>jerownimow</dc:creator>
      <dc:date>2018-11-11T15:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to append different row inputs in the same XML hierarchy?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-append-different-row-inputs-in-the-same-XML-hierarchy/m-p/2236472#M25174</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Unfortunately your current XML structure is not in a recommended way. You are trying to add both Asset type and Sub Asset type under same XML element "text" as sub elements. When your target system is trying to read the data, how will they differentiate the values of the data based on XML elements. In the current data structure everything is revolving under same XML element "text".&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M10a.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137965iB78D259AF875A3CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M10a.png" alt="0683p000009M10a.png" /&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;Similarly you need to name all the sub elements according to the data it is containing. Once the rename is correct, you will get more flexibility to read them.&amp;nbsp;Without doing that, if you are trying to merge them, your target systems will have tough time to manage the data.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also when the code is moved to production, your support team will find it very difficult to support the XML structure as every element is being&amp;nbsp; same structure and name.&amp;nbsp;I would highly recommend you to make these changes else it will create issues during later stages of your project.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Coming to the grouping part, you can convert the data to single XML layer format and read them as input to one more tXMLmap. In the second xml map, you can chnage the grouping at higher level. In this way, you can merge all data to single record.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 12:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-append-different-row-inputs-in-the-same-XML-hierarchy/m-p/2236472#M25174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-12T12:41:34Z</dc:date>
    </item>
  </channel>
</rss>

