<?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: [resolved] Aggregate rows to multiple XML-Elements with the same name in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Aggregate-rows-to-multiple-XML-Elements-with-the-same/m-p/2325472#M95069</link>
    <description>Hello guy
&lt;BR /&gt;Good news! I just want to tell you to use 'group element' feature.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
    <pubDate>Tue, 22 Sep 2009 04:28:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-09-22T04:28:27Z</dc:date>
    <item>
      <title>[resolved] Aggregate rows to multiple XML-Elements with the same name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Aggregate-rows-to-multiple-XML-Elements-with-the-same/m-p/2325470#M95067</link>
      <description>Hello! 
&lt;BR /&gt;I guess the subject of this thread is hard to understand, but because english is not my native language my question may be a little hard to explain. I'll try anyway! 
&lt;BR /&gt;Talend Open Studio is the subject of a paper I write for my university. For this purpose I review TOS and write about it's possibilities. 
&lt;BR /&gt;At this point I am quite impressed of the functionality. I especially like the huge amount of available components and that you can make your own relative easily. But let's come to the subject of this thread. 
&lt;BR /&gt;Maybe it's easier when I just show you want I would like to accomplish. Let's say we have this XML-document (in fact, this is a part of the actual document I want to process): 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;items&amp;gt;&lt;BR /&gt;	&amp;lt;item&amp;gt;&lt;BR /&gt;	&amp;lt;title&amp;gt;Square Enix kündigt Final Fantasy XIII: Epsiode Zero an&amp;lt;/title&amp;gt;&lt;BR /&gt;	&amp;lt;category&amp;gt;Multi&amp;lt;/category&amp;gt;&lt;BR /&gt;	&amp;lt;/item&amp;gt;&lt;BR /&gt;	&amp;lt;item&amp;gt;&lt;BR /&gt;	&amp;lt;title&amp;gt;Probefassung zu Katamari Forever ein voller Erfolg&amp;lt;/title&amp;gt;&lt;BR /&gt;	&amp;lt;category&amp;gt;PlayStation 3&amp;lt;/category&amp;gt;&lt;BR /&gt;	&amp;lt;/item&amp;gt;&lt;BR /&gt;	&amp;lt;item&amp;gt;&lt;BR /&gt;	&amp;lt;title&amp;gt;Rock Band: Die Download-Songs der aktuellen Woche&amp;lt;/title&amp;gt;&lt;BR /&gt;	&amp;lt;category&amp;gt;Xbox 360&amp;lt;/category&amp;gt;&lt;BR /&gt;	&amp;lt;/item&amp;gt;&lt;BR /&gt;	&amp;lt;item&amp;gt;&lt;BR /&gt;	&amp;lt;title&amp;gt;Activision verschiebt Blur auf das kommende Jahr&amp;lt;/title&amp;gt;&lt;BR /&gt;	&amp;lt;category&amp;gt;Multi&amp;lt;/category&amp;gt;&lt;BR /&gt;	&amp;lt;/item&amp;gt;&lt;BR /&gt;	&amp;lt;item&amp;gt;&lt;BR /&gt;	&amp;lt;title&amp;gt;Fortress: GRINs Final Fantasy befindet sich weiter in Arbeit&amp;lt;/title&amp;gt;&lt;BR /&gt;	&amp;lt;category&amp;gt;Multi&amp;lt;/category&amp;gt;&lt;BR /&gt;	&amp;lt;/item&amp;gt;&lt;BR /&gt;	&amp;lt;item&amp;gt;&lt;BR /&gt;	&amp;lt;title&amp;gt;PSPgo: Downloads aus dem Ausland ohne weiteres möglich&amp;lt;/title&amp;gt;&lt;BR /&gt;	&amp;lt;category&amp;gt;PlayStation 3&amp;lt;/category&amp;gt;&lt;BR /&gt;	&amp;lt;/item&amp;gt;&lt;BR /&gt;	&amp;lt;item&amp;gt;&lt;BR /&gt;	&amp;lt;title&amp;gt;Deal of the Week: Flippern zum Sparpreis&amp;lt;/title&amp;gt;&lt;BR /&gt;	&amp;lt;category&amp;gt;Xbox 360&amp;lt;/category&amp;gt;&lt;BR /&gt;	&amp;lt;/item&amp;gt;&lt;BR /&gt;&amp;lt;/items&amp;gt;&lt;/PRE&gt; 
&lt;BR /&gt;What I now want to do is to group the entries by the "category"-element to get this result: 
&lt;BR /&gt; 
&lt;PRE&gt;&amp;lt;items&amp;gt;&lt;BR /&gt;	&amp;lt;item category="Multi"&amp;gt;&lt;BR /&gt;		&amp;lt;title&amp;gt;Square Enix kündigt Final Fantasy XIII: Epsiode Zero an&amp;lt;/title&amp;gt;&lt;BR /&gt;		&amp;lt;title&amp;gt;Activision verschiebt Blur auf das kommende Jahr&amp;lt;/title&amp;gt;&lt;BR /&gt;		&amp;lt;title&amp;gt;Fortress: GRINs Final Fantasy befindet sich weiter in Arbeit&amp;lt;/title&amp;gt;&lt;BR /&gt;	&amp;lt;/item&amp;gt;&lt;BR /&gt;	&amp;lt;item category="PlayStation 3"&amp;gt;&lt;BR /&gt;		&amp;lt;title&amp;gt;Probefassung zu Katamari Forever ein voller Erfolg&amp;lt;/title&amp;gt;&lt;BR /&gt;		&amp;lt;title&amp;gt;PSPgo: Downloads aus dem Ausland ohne weiteres möglich&amp;lt;/title&amp;gt;&lt;BR /&gt;	&amp;lt;/item&amp;gt;&lt;BR /&gt;	&amp;lt;item category="Xbox 360"&amp;gt;&lt;BR /&gt;		&amp;lt;title&amp;gt;Rock Band: Die Download-Songs der aktuellen Woche&amp;lt;/title&amp;gt;&lt;BR /&gt;		&amp;lt;title&amp;gt;Deal of the Week: Flippern zum Sparpreis&amp;lt;/title&amp;gt;&lt;BR /&gt;	&amp;lt;/item&amp;gt;&lt;BR /&gt;&amp;lt;/items&amp;gt;&lt;/PRE&gt; 
&lt;BR /&gt;Is this possible with TOS without writing a custom component? I already tried to use tAggregateRow, but then I don't know what to do with the "title"-element. The aggregate function "list" just concatenates the titles with a comma, while "list(object)" obviously just creates a List-object. In both cases I don't know how to write the XML-document like in the example above. I tried it with tAdvancedFileOutputXML, but this doesn't let me write a "list" of entries in the desired way. 
&lt;BR /&gt;I think it would by a great improvement if this component would be able to process a "List" (object) by just writing one XML-element for each list-entry. Then in my schema a "category" would be a "String" and "title" would by a "List". It would be great if tAdvancedFileOutputXML would process a "List"-type by writing its elements like in the second example above. 
&lt;BR /&gt;While this seems not to be possible at the moment, is there another way to get the desired output? 
&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Sat, 16 Nov 2024 13:45:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Aggregate-rows-to-multiple-XML-Elements-with-the-same/m-p/2325470#M95067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Aggregate rows to multiple XML-Elements with the same name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Aggregate-rows-to-multiple-XML-Elements-with-the-same/m-p/2325471#M95068</link>
      <description>It's always the same: First you try to figure out something by yourself for several days without success. Then you ask in a forum, and short time afterwards you figure it out by yourself. How embarrassing. 
&lt;BR /&gt;I didn't know there was something like a "group element" when you define a XML-tree. After I found this it was easy to figure out that the input has to be sorted. 
&lt;BR /&gt;So just for the other people with similar problems: 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt;The input rows have to be sorted by "category" in this example. 
&lt;BR /&gt;Then defining the XML Tree in tAdvancedFileOutputXML: 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt;This produces exactly the output I wanted. 
&lt;BR /&gt;I am sorry for asking too quickly.</description>
      <pubDate>Tue, 22 Sep 2009 04:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Aggregate-rows-to-multiple-XML-Elements-with-the-same/m-p/2325471#M95068</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-22T04:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Aggregate rows to multiple XML-Elements with the same name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Aggregate-rows-to-multiple-XML-Elements-with-the-same/m-p/2325472#M95069</link>
      <description>Hello guy
&lt;BR /&gt;Good news! I just want to tell you to use 'group element' feature.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 22 Sep 2009 04:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Aggregate-rows-to-multiple-XML-Elements-with-the-same/m-p/2325472#M95069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-22T04:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Aggregate rows to multiple XML-Elements with the same name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Aggregate-rows-to-multiple-XML-Elements-with-the-same/m-p/2325473#M95070</link>
      <description>I will write good things about the support in my paper 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 22 Sep 2009 04:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Aggregate-rows-to-multiple-XML-Elements-with-the-same/m-p/2325473#M95070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-22T04:30:38Z</dc:date>
    </item>
  </channel>
</rss>

