on 03-16-2010 8:00 PM
Hi,
I am dealing with a mapping challenge. I have my incoming message
<address>
<name1> A</name1> (occurrence is 0:1)
<street1>ABC Street</street1>
<name2>P</name2>
<street2>PQR Street</street2>
.
.
.
<name100>X</name100>
<street100>XYZ Street</street100>
</address>
to be mapped to:
<address>
<name> A</name> (occurrence is 0:unbounded)
<street>ABC Street</street>
<name>P</name>
<street>PQR Street</street>
.
.
.
<name>X</name>
<street>XYZ Street</street>
</address>
Is this possible without duplicating subtrees?
Teresa
Hi,
I don't get this one
why do you need to duplicate if the sender can only send 0 or 1 ?
you just map one right?
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The sender has address information across street1, street2, street3u2026.and so on. But the receiver has only name and street but can receive it multiple times. During graphical mapping I will have to duplicate the target subtree to get the different names (1,2..100)and street( 1,2..100) into multiple occurrences of name and street.
Is this the best approach or can java UDF do some magic with incrementing tags?. Please advise.
Teresa
Hi Teresa,
You sender is 0..1 and your target is 0..unbounded. So map directly one to one. There should not be any issues. So if you have your source then target segment will be mapped else it will not be mapped. Straight forward.
Also can you put a sample input xml and sample xml output with full example and atleast with three records.
Regards,
---Satish
Edited by: Satish Reddy on Mar 16, 2010 2:20 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.