Convert element tags to key value pair in OIC map

28 views Asked by At

Currently i am getting my input payload in this format.

<Marks>
<Math>87</Math>
<Science>92</Science>
<History>85</History>
</Marks>

Can this be converted to the below format using OIC map. Please suggest.

<Marks>
 <Subject>Math</Subject>
 <Value>87</Value>
</Marks>
<Marks>
 <Subject>Science</Subject>
 <Value>92</Value>
</Marks>
<Marks>
 <Subject>History</Subject>
 <Value>85</Value>
</Marks>

Any solution to this most welcome.

0

There are 0 answers