Appending children to single parent node in xml using xslt [closed]

snajeb

New Member
Thanks for the reply. There is a slight change in the requirement. The given xml structure is:\[code\]<A id=1><b>data1</b></A><A id=1><b>data2</b></A><A id=2><b>data1</b></A><A id=1><b>data3</b></A><A id=2><b>data5</b></A>\[/code\]The resultant xml should be:\[code\]<A id=1><b>data1</b><b>data2</b><b>data3</b></A><A id=2><b>data1</b><b>data5</b></A>\[/code\]Kindly let me know, how can i achieve this.Thanks in advance.I have an xml structure like the follwing:\[code\]<A><a1></a1></A><A><b1></b1></A><A><c1></c1></A>\[/code\]I want the resultant xml as:\[code\]<A><a1></a1><b1></b1><c1></c1></A>\[/code\]Can anyone help me to achieve this using xslt.Thanks in advance.
 
Back
Top