Skip to Content
0
Former Member
Nov 08, 2005 at 04:41 AM

Mapping question

17 Views

I have the following source structure and would like to target as follows

Source: x_MT

<?xml version="1.0" encoding="UTF-8"?>

abc.com/IAM">

<Header>

<Label>H1</Label>

<str>00</str>

</Header>

<Item>

<Label>L1</Label>

<str>01</str>

</Item>

<Address>

<Label>N1</Label>

<str>abc</str>

</Address>

<Item>

<Label>L1</Label>

<str>02</str>

</Item>

<Address>

<Label>N1</Label>

<str>abcd</str>

</Address>

</ns:x_MT>

Target: y_MT

<?xml version="1.0" encoding="UTF-8"?>

abc.com/IAM">

<Header>

<Label>H1</Label>

<str>00</str>

</Header>

<Detail>

<Item>

<Label>L1</Label>

<str>01</str>

</Item>

<Address>

<Label>N1</Label>

<str>abc</str>

</Address>

<Item>

<Label>L1</Label>

<str>02</str>

</Item>

<Address>

<Label>N1</Label>

<str>abcd</str>

</Address>

</Detail>

</ns:y_MT>

What should be mapped to node - Detail. Detail has 1:unbounded occurrences. I tried node funtion splitByValue and ended up with 2 items followed by 2 address elements. I'm a little confused. We are on SP12 and I've seen some new functions in SP14 or SP15. Is it possible?

thank you,

Parimala