on 12-27-2009 4:42 AM
Hello,
I need your recommendation in the best way to do the following mapping requriement between 2 XML messages:
The first message has one or more item(s) each item tag has a filed called 'Type'
Depends on the number of distinct types, the number <type> tag will be generated in message 2
Example:
XML message 1
<Message>
<Body>
<item>
u2026u2026u2026
<Type>Nomral<Type>
u2026u2026.
</item>
<item>
u2026u2026.
<Type>Normal</Type>
u2026u2026.
</item>
<item>
u2026u2026.
<Type>Rush</Type>
u2026u2026.
</item>
</Body>
</Message>
XML message 2: (Note two items under Normal, and one item under Rush).....
<Message>
<Body>
<Type>
<Name>Normal</Name>
<Item></item>
<item></item>
u2026u2026.
</Type>
<Type>
<Name>Rush</Name>
<Item></item>
u2026u2026.
</Type>
</Body>
</Message>
Any feedback is appreciated?
Thank you,
First of all this will not be a case of Multi-Mapping (as mentioned in your subject). This can be done just by using some std functions. e.g.
Type -->RemoveContext-->Sort-->SplitByValue(on value change)-->CollapseContext-->Type
Type -->RemoveContext-->Sort-->SplitByValue(on value change)-->CollapseContext-->Name
Item-->SplitByValue(each value)-->Item.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.