Skip to Content
0
May 17, 2018 at 07:50 PM

Creating target nodes from parent AND child nodes

175 Views Last edit May 28, 2018 at 07:52 AM 2 rev

Hello SCN,

The question is how to create multiple identical nodes from a parent AND child node in the source message.

For example,

Source message:

<Parent></Parent>

<Parent>

<Child></Child>

</Parent>

Resulting message:

<Item/>

<Item/>

<Item/>

So a target node ('Item' in this example) is created from each 'Parent' and 'Child' node.

Initially, I tried something like this:

with the 'Child' node changed to have the context of the 'Parent'.

Unfortunately, does not work. I also have tried adding 'removeContexts' and 'splitByValue' in multiple configurations with no result.

It always creates just the 'Parent' nodes. Any suggestions will be greatly appreciated.

Attachments

mapping.png (21.2 kB)