I have a rather simple question regarding a mapping.
Lets say my input message is as following:
<mes1> <seg1> <name1>Peter</name1> <street1>HighCrt</street1> </seg1> <seg2> <name2>Vlad</name2> <sub2>Trickst</sub2> </seg2> <seg2> <name2>Rinaldo</name2> <sub2>fiave</sub2> </seg2> </mes1>
My output should be:
<out> <put> <name>Peter</name> <name>Vlad</name> <name>Rinaldo</name> </put> </out>
So my output field "name" should created in case I have a "name1" field in the source message and additionally it should be created for every "seg2" element that is present in the source message and it should be filled with the value of "name2".
How can I in the mapping trigger that the "name" element of the output message will be generated for each of the two described elements of the source message?