Skip to Content

Creating node fixed number of times in mapping

Hi,

I have to map header data fields to multiple occurrences of target field.

My input structure is

<Input>
<material>500234</material>
<site>800</site>
</Input>

Desired output is

<Identification>
<IdentificationValue>500234</IdentificationValue>
<IdentificationType>TAG_1</IdentificationType>
</Identification>
<Identification>
<IdentificationValue>800</IdentificationValue>
<IdentificationType>TAG_2</IdentificationType>
</Identification>

Here TAG_1 and TAG_2 are constant.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 28 at 01:48 PM

    Hi Mohammad!

    If you have the constant count of source nodes (two in your case) - you may set occurence to "0..unbounded" for target node and in graphical mapping editor simply make a copy of the desired target node (using right-click, for example). After that you can link each of your source elements to its own target node copy.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded