on 03-05-2008 3:51 PM
Dear experts,
I'm am trying to perform a mapping from 4 different elements containing the same sub-structure into a re-iterated element at the target side. How can I map the fields in such a way that the target header will appear three times, according to the number of different headers in the source.
As the following:
Source:
<headerA>
<itemA>bla</itemA>
<itemB>bla</itemB>
<itemC>bla</itemC>
</headerA>
<headerB>
<itemA>blb</itemA>
<itemB>blb</itemB>
<itemC>blb</itemC>
</headerB>
<headerC>
<itemA>blc</itemA>
<itemB>blc</itemB>
<itemC>blc</itemC>
</headerC>
Target:
<header>
<itemA>bla</itemA>
<itemB>bla</itemB>
<itemC>bla</itemC>
</header>
<header>
<itemA>blb</itemA>
<itemB>blb</itemB>
<itemC>blb</itemC>
</header>
<header>
<itemA>blc</itemA>
<itemB>blc</itemB>
<itemC>blc</itemC>
</header>
Thanks in advance.
Hello,
From source you will always get only HeaderA, HeaderB, HeaderC? or you will get more?
If it's only three, then in target also u will get only three.
So right click on Header in target and say Duplicate Subtree - two times. Now you will have three Header structure in target.
Now map
HeaderA to Header
Item A to Item A
Item B to Item B
Item C to Item C
Duplicated Target
HeaderB to Header
Item A to Item A
Item B to Item B
Item C to Item C
Duplicated Target
HeaderC to Header
Item A to Item A
Item B to Item B
Item C to Item C
If the requirement is different, let me know.
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.