Hi All,
How can i sort the below structure using message mapping.
I have a structure similar to the one given below:
<Recordset>
<Item1>
<Forcast1>
<Forcast2>
<Forcast3>
<Forcast4>
<Item1>
<Item2>
<Forcast1>
<Forcast2>
<Forcast3>
<Forcast4>
<Item2>
<Item3>
<Forcast1>
<Forcast2>
<Forcast3>
<Forcast4>
<Item3>
<Item4>
<Forcast1>
<Forcast2>
<Forcast3>
<Forcast4>
<Item4>
<Item5>
<Forcast1>
<Forcast2>
<Forcast3>
<Forcast4>
<Item5>
</Recordset>
I need to sort these Items on basis of Forcast2 values using Message Mapping. For ex Forcast2 have these values(10,6,12,1,6) respectively. Then output should be:
<Recordset>
<Item4></Item4>
<Item2></Item2>
<Item5></Item5>
<Item1></Item1>
<Item3></Item3>
<Recordset>