Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
RHZ123
Contributor
Contributor

txmlMap

hello to all I would like to know is that there is someone among you who can tell me what is the difference between a loop and optional loop in a txmlMap

Labels (3)
1 Reply
Anonymous
Not applicable

Hi,

 

When the corresponding element exists in the source file, an optional loop element works the same way as a normal loop element; otherwise, it resets automatically its parent element as loop element or in absence of parent element in the source file, it takes the element of the higher level until the root element. But in the real-world practice, with such differences between the XML tree and the source file structure, we recommend adapting the XML tree to the source file for better performance.

https://help.talend.com/reader/1~9OqzgTIX~HofOefoxthg/NB2Z_yYzfCDtDebnAMfmaA

 

As I understand it, the optional loop is the same as the loop, except when the source is not the same as the XML tree, and this loop may not exist.

 

Thanks