Five Stars

mulitple loops in subelements and group superior element

 

Hello Talend-Community,

 

I want to group element B and element C and I want to maintain my loops. Do you have ideas? It's an excerpt from txmlmap.

 

Loopfunktion.png

It is just possible to group one elementtree like this:

Loopfunktion1.png

 

Kind regards,

Talenduser2018

1 ACCEPTED SOLUTION

Accepted Solutions
Five Stars

Re: mulitple loops in subelements and group superior element

I found the solution in the chapter 09 (0050) of the talend cookbook.

2 REPLIES
Fifteen Stars

Re: mulitple loops in subelements and group superior element

I'm assuming you are essentially asking about loops within loops using a tXMLMap? If so, the answer is basically no. It's not possible......without either the Enterprise Edition and the Data Mapper, or some jiggery pokery. If you do not have the Data Mapper, take a look here (https://community.talend.com/t5/Design-and-Development/Multiple-Nested-loop-in-outputXML/m-p/82289). I gave an explanation as to how to build up a complicated XML structure using the tXMLMap and a bit of String manipulation. 

Rilhia Solutions
Five Stars

Re: mulitple loops in subelements and group superior element

I found the solution in the chapter 09 (0050) of the talend cookbook.