I am trying to write a mapper. whose input xml is in the format:
<OR_Items>
<Item>
<Name>item1</Name>
<Value>item1Value</Value>
</Item>
<Item>
<Name>item2</Name>
<Value>item2Value</Value>
</Item>
<LineItems LineItemName="123">
<SubItems>
<SubItem>
<Name>subitem1</Name>
<Value>subitem1Value</Value>
</SubItem>
<SubItem>
<Name>subitem2</Name>
<Value>subitem2Value</Value>
</SubItem>
</SubItems>
<SubItems>
<SubItem>
<Name>1</Name>
<Value>value</Value>
</SubItem>
<SubItem>
<Name>name</Name>
<Value>value</Value>
</SubItem>
</SubItems>
</LineItems>
<LineItems LineItemName="abnbdf">
…..
…..
</LineItems>
<OR_Items>
where Name contacins the name of anyitem and value contanes value.I want to
convert this into a simple xml like:
<OutputXml>
<item1>item1Value</item1>
<subitem1>subitem1Value</subitem1>
<subitem2>subitem2Value</subitem2>
</OutputXml>