<?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: Outputting XML with Denormalized Data in One Row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Outputting-XML-with-Denormalized-Data-in-One-Row/m-p/2236094#M24928</link>
    <description>Hi,
&lt;BR /&gt;The append option doesn't seem to give me what I need. It does not seem to keep track of which looped values go with which rows. The number of values looped through is different for each field and different for each row.
&lt;BR /&gt;
&lt;BR /&gt;Given the SAMPLE INPUT
&lt;BR /&gt;ROW1 with
&lt;BR /&gt;game_id 1
&lt;BR /&gt;genre_id 7
&lt;BR /&gt;tag_id 1,2,3
&lt;BR /&gt;tag_name tag1,tag2,tag3
&lt;BR /&gt;brand_name brand1, brand2
&lt;BR /&gt;ROW2 with
&lt;BR /&gt;game_id 2
&lt;BR /&gt;genre_id 8
&lt;BR /&gt;tag_id 1,4
&lt;BR /&gt;tag_name tag1,tag4
&lt;BR /&gt;brand_name brand1,brand3,brand5
&lt;BR /&gt;
&lt;BR /&gt;DESIRED XML OUTPUT should be
&lt;BR /&gt;&amp;lt;add&amp;gt;
&lt;BR /&gt; &amp;lt;doc&amp;gt;
&lt;BR /&gt; &amp;lt;field name="game_id"&amp;gt;1&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="genre_id"&amp;gt;7&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_id"&amp;gt;1&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_id"&amp;gt;2&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_id"&amp;gt;3&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_name"&amp;gt;tag1&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_name"&amp;gt;tag2&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_name"&amp;gt;tag3&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="brand_name"&amp;gt;brand1&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="brand_name"&amp;gt;brand2&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;/doc&amp;gt;
&lt;BR /&gt; 
&lt;BR /&gt; &amp;lt;doc&amp;gt;
&lt;BR /&gt; &amp;lt;field name="game_id"&amp;gt;2&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="genre_id"&amp;gt;8&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_id"&amp;gt;1&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_id"&amp;gt;4&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_name"&amp;gt;tag1&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_name"&amp;gt;tag4&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="brand_name"&amp;gt;brand1&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="brand_name"&amp;gt;brand3&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="brand_name"&amp;gt;brand5&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;/doc&amp;gt;
&lt;BR /&gt;&amp;lt;/add&amp;gt;
&lt;BR /&gt;
&lt;BR /&gt;Is this not possible in Talend?
&lt;BR /&gt;
&lt;BR /&gt;Best regards,
&lt;BR /&gt;LC</description>
    <pubDate>Wed, 09 Mar 2011 17:26:56 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2011-03-09T17:26:56Z</dc:date>
    <item>
      <title>Outputting XML with Denormalized Data in One Row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Outputting-XML-with-Denormalized-Data-in-One-Row/m-p/2236092#M24926</link>
      <description>Hi, 
&lt;BR /&gt;I am confused as to whether the following is possible in Talend Open Studio... 
&lt;BR /&gt;I have a denormalized data set where each row has something similar to: 
&lt;BR /&gt;game_id: 5 
&lt;BR /&gt;game_name: game_name 
&lt;BR /&gt;genre_id: 7 
&lt;BR /&gt;ganre_name: genre_name 
&lt;BR /&gt;tag_id: 1,2,3 
&lt;BR /&gt;tag_name: tag_name1,tag_name2,tag_name3 
&lt;BR /&gt;brand_name:brand1,brand2,brand3,brand4 
&lt;BR /&gt;Is it possible to split the denormalized fields into multiple nodes within one level in an XML output? 
&lt;BR /&gt;&amp;lt;row&amp;gt; 
&lt;BR /&gt; &amp;lt;game_id&amp;gt;5&amp;lt;/game_id&amp;gt; 
&lt;BR /&gt; &amp;lt;game_name&amp;gt;game_name&amp;lt;/game_name&amp;gt; 
&lt;BR /&gt; &amp;lt;genre_id&amp;gt;7&amp;lt;/genre_id&amp;gt; 
&lt;BR /&gt; &amp;lt;genre_name&amp;gt;genre_name&amp;lt;/genre_name&amp;gt; 
&lt;BR /&gt; &amp;lt;tag_id&amp;gt;1&amp;lt;/tag_id&amp;gt; 
&lt;BR /&gt; &amp;lt;tag_id&amp;gt;2&amp;lt;/tag_id&amp;gt; 
&lt;BR /&gt; &amp;lt;tag_id&amp;gt;3&amp;lt;/tag_id&amp;gt; 
&lt;BR /&gt; &amp;lt;tag_name&amp;gt;tag_name1&amp;lt;/tag_name&amp;gt; 
&lt;BR /&gt; &amp;lt;tag_name&amp;gt;tag_name2&amp;lt;/tag_name&amp;gt; 
&lt;BR /&gt; &amp;lt;tag_name&amp;gt;tag_name3&amp;lt;/tag_name&amp;gt; 
&lt;BR /&gt; &amp;lt;brand_name&amp;gt;brand1&amp;lt;/brand_name&amp;gt; 
&lt;BR /&gt; &amp;lt;brand_name&amp;gt;brand2&amp;lt;/brand_name&amp;gt; 
&lt;BR /&gt; &amp;lt;brand_name&amp;gt;brand3&amp;lt;/brand_name&amp;gt; 
&lt;BR /&gt; &amp;lt;brand_name&amp;gt;brand4&amp;lt;/brand_name&amp;gt; 
&lt;BR /&gt;&amp;lt;/row&amp;gt; 
&lt;BR /&gt;The total number of items in any of the denormalized fields is dynamic. There is always 1 or more of tag_id, tag_name, and brand_name, but each row in the data set has its own limit. I don't know if there are 3 or 4 or 10 ahead of time. Tag_id and tag_name correspond to each other so will have the same number of items per row, but brand_name is independent of those two fields. 
&lt;BR /&gt;It seems tAdvancedFileOutputXML does not take more than one loop element. Please advise ASAP. 
&lt;BR /&gt;Best regards, 
&lt;BR /&gt;LC</description>
      <pubDate>Sat, 16 Nov 2024 13:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Outputting-XML-with-Denormalized-Data-in-One-Row/m-p/2236092#M24926</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting XML with Denormalized Data in One Row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Outputting-XML-with-Denormalized-Data-in-One-Row/m-p/2236093#M24927</link>
      <description>Hi 
&lt;BR /&gt;Yes, the tAdvancedFileOutputXML does not take more than one loop elemen at a time, however, you can use several tAdvancedFileOutputXML for each loop element with 'append the source xml file' option. see 
&lt;A href="https://community.talend.com/t5/Design-and-Development/Extract-and-aggregate-data-from-2-tables-1-to-many-relationship/td-p/96223" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Extract-and-aggregate-data-from-2-tables-1-to-many-relationship/td-p/96223&lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 09 Mar 2011 03:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Outputting-XML-with-Denormalized-Data-in-One-Row/m-p/2236093#M24927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-09T03:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting XML with Denormalized Data in One Row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Outputting-XML-with-Denormalized-Data-in-One-Row/m-p/2236094#M24928</link>
      <description>Hi,
&lt;BR /&gt;The append option doesn't seem to give me what I need. It does not seem to keep track of which looped values go with which rows. The number of values looped through is different for each field and different for each row.
&lt;BR /&gt;
&lt;BR /&gt;Given the SAMPLE INPUT
&lt;BR /&gt;ROW1 with
&lt;BR /&gt;game_id 1
&lt;BR /&gt;genre_id 7
&lt;BR /&gt;tag_id 1,2,3
&lt;BR /&gt;tag_name tag1,tag2,tag3
&lt;BR /&gt;brand_name brand1, brand2
&lt;BR /&gt;ROW2 with
&lt;BR /&gt;game_id 2
&lt;BR /&gt;genre_id 8
&lt;BR /&gt;tag_id 1,4
&lt;BR /&gt;tag_name tag1,tag4
&lt;BR /&gt;brand_name brand1,brand3,brand5
&lt;BR /&gt;
&lt;BR /&gt;DESIRED XML OUTPUT should be
&lt;BR /&gt;&amp;lt;add&amp;gt;
&lt;BR /&gt; &amp;lt;doc&amp;gt;
&lt;BR /&gt; &amp;lt;field name="game_id"&amp;gt;1&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="genre_id"&amp;gt;7&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_id"&amp;gt;1&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_id"&amp;gt;2&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_id"&amp;gt;3&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_name"&amp;gt;tag1&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_name"&amp;gt;tag2&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_name"&amp;gt;tag3&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="brand_name"&amp;gt;brand1&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="brand_name"&amp;gt;brand2&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;/doc&amp;gt;
&lt;BR /&gt; 
&lt;BR /&gt; &amp;lt;doc&amp;gt;
&lt;BR /&gt; &amp;lt;field name="game_id"&amp;gt;2&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="genre_id"&amp;gt;8&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_id"&amp;gt;1&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_id"&amp;gt;4&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_name"&amp;gt;tag1&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="tag_name"&amp;gt;tag4&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="brand_name"&amp;gt;brand1&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="brand_name"&amp;gt;brand3&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;field name="brand_name"&amp;gt;brand5&amp;lt;/field&amp;gt;
&lt;BR /&gt; &amp;lt;/doc&amp;gt;
&lt;BR /&gt;&amp;lt;/add&amp;gt;
&lt;BR /&gt;
&lt;BR /&gt;Is this not possible in Talend?
&lt;BR /&gt;
&lt;BR /&gt;Best regards,
&lt;BR /&gt;LC</description>
      <pubDate>Wed, 09 Mar 2011 17:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Outputting-XML-with-Denormalized-Data-in-One-Row/m-p/2236094#M24928</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-03-09T17:26:56Z</dc:date>
    </item>
  </channel>
</rss>

