loop multiple elements in advancedOutputFIle

One Star

loop multiple elements in advancedOutputFIle

I want to loop many elements in one file for example the source file:
<doc>
<name>joe</name>
<type>string</type>
</doc>
could have multiple rows like this:
<doc>
<name>joe</name>
<type>string</type>
<name>john</name>
<type>int</type>
</doc>
However it doesnt allow multiple loop element, i read about group element but its constantly greyed out. Is there any way around this other than writing out to multiple files? Also is it possible to read in from multiple files?
Community Manager

Re: loop multiple elements in advancedOutputFIle

Hello
However it doesnt allow multiple loop element,

Yes, tAdvancedFileOutputXML don't support multiple loop element, in your case, you can generate a file like this:
<doc>
<name>joe</name>
<type>string</type>
</doc>
<doc>
<name>john</name>
<type>int</type>
</doc>
Well, you can group your element with one attribute, see 1847
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business