Hi all,
in a graphical mapping, I would like to map different subtrees of the source message to the same subtree of the target message.
For instance, let's assume we have the following source message with the different subtrees <i>child1</i> and <i>child2</i> , each with different content:
<source>
<child1>
<src_id>1</src_id>
<src_name>John</src_name>
</child1>
<child2>
<src_id>2</src_id>
<src_number>123</src_number>
</child2>
</source>
...then, I would like to have a target message with just a single subtree <i>child</i>, with the content of the source subtree mapped to fields of the target subtree:
<target>
<child>
<target_id>1</target_id>
<target_name>John</target_name>
</child>
<child>
<target_id>2</target_id>
<target_number>123</target_number>
</child>
</target>
I could do this with XSLT I think...but is there a way to do it with a graphical mapping? Please be aware that real input messages will have up to 10 different subtrees, so I would like to avoid if...then approaches...
Any help is appreciated.
Regards,
Matthias