on 04-17-2014 4:45 AM
Hi All
I have a source structure like this below. It's a big structure actually. I'm just pasting the relevant structure where I need your help.
</root>
---
---
<storage>
<id>AB</id>
<Type>TY</storType>
<Temp>100</Temp>
</storage>
------
-----
----</root>
My requirement is to check the value coming in <Type> and if it is TY, then the target structure will be the exactly the same
If it is XY, then the target structure will have one more field <celsius> and will look like this below.
</root>
---
---
<storage>
<id>AB</id>
<Type>TY</storType>
<Temp>100</Temp>
<celsius>922</celsius>
</storage>
------
-----
----</root>
The <storage> complex element with elements can repeat as many times in the source XML. But the values of <Type> will be either TY or XY and I have to create the target structure accordingly. Pls help. I am using graphical message mapping
thx
mike
Hi Mike,
The target field celsius is from source message or constant?
If it is from source message then mapping of celsius field is
Type --> Equals (XY) --> If without else --> Map constant or source field to celsius.
Regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 | |
9 | |
7 | |
7 | |
6 | |
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.