cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to map one particular value in message mapping from multiple values

purusottam_agar
Explorer
0 Kudos
655

Hi Experts,

I am facing a challenge and need your suggestions for the below scenario.

input side XML: <ROOT>
<item>
<Type>S</Type>
<Message>Success</Message>
</item>
<item>
<Type>S</Type>
<Message>Success</Message>
</item>
<item>
<Type>F</Type>
<Message>Failed</Message>
</item>
</ROOT>

likewise multiple items are coming in the input xml and I want to map only the <Type>F</Type> and <Message>Failed</Message> in the target side. How to achieve this.

Best Regards,

Purusottam Agarwal

 

View Entire Topic
tab89
Explorer
0 Kudos

I think we can use Filter with condition /ROOT/item[Type = 'F']