After using XSLT i need to get the XML in the following format.
<Seg1>
<Item>
<A>a</A>
<B>b</B>
</Item>
<Item>
<A>c</A>
<B>d</B>
</Item>
</Seg1>
<Seg2>
<Item>
<X>a</X>
<Y>b</Y>
</Item>
<Item>
<X>c</X>
<Y>d</Y>
</Item>
</Seg2>
The Problem is that the names ot the Elements that are coming in the incoming XML are not constant. So i should not hard code the element names in the XSLT. Can you please kindly help in this issue.