Need to generate XML with 2 looping attributes using talend. Here these 2 loop attributes can have different number of loop frequency.
Ex Loop1 can have 3 different values and loop 2 can have 8 different values.
I have used TXMLMAP to set 2 loop element under one root of XML but when job run is done the output XML file would have duplicate data of looping elements.
So for aboce example loop1 elemets 3 different values would get duplicated 8 times and
I have used TXMLMAP to set 2 loop element under one root of XML but when job run is done the output XML file would have duplicate data of looping elements.
So for aboce example loop1 elemets 3 different values would get duplicated 8 times and vice versa for loop2 element.
Can some please help how to get just distinct values in each loop attributes at output xml.
Vishal Bendale is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.