Multiple nodes to single node - mapping
How to do the mapping for the following structure.
<PartyA> .... ... </PartyA> <PartyA> .... ... </PartyA> <PartyB> .... ... </PartyB> <PartyC> .... ... </PartyC> <PartyD> .... ... </PartyD>
<Party type=A/B/C/D> .... .... </Party>
The target has a node "Party" with an attribute type. The value for type can be A/B/C/D or it can be any of the combinations. ie the party node can occur for A/B/C/D or for all.
The target will look like this...
Claus Wallacher replied
in the graphical mapping tool do the following:
1. Do the mapping for party type A.
2. On your target structure (within the graphical mapping) right click on the element party and select the option <i>Duplicate Subtree</i>.
3. In the second occurrence of party, do the mapping for party type B
4. Repeat this for party types C and D.
To make sure that only the necessary occurences of <b>party</b> are created, simply map <b>Party A</b> to your first occurrence of <b>party</b> in the graphical mapping display, <b>Party B</b> to the second occurrence of <b>party</b> and so on.