Hi there,
I have an xml structure like below.
<Root>
<Books Name="C++" Author="Unknown">
<Book Price="30"/>
<Book Price="50"/>
<Book Price="45"/>
</Books>
</Root>
Using an xsl,I want to rename only the Books node to "TechBooks" and this new node will have all the attributes and child nodes which the oroginal node has.
So the new xml will be :
<Root>
<TechBooks Name="C++" Author="Unknown">
<Book Price="30"/>
<Book Price="50"/>
<Book Price="45"/>
</TechBooks>
</Root>
Can u pls tell me the best possible way to do this in xsl...?
Thanks
I have an xml structure like below.
<Root>
<Books Name="C++" Author="Unknown">
<Book Price="30"/>
<Book Price="50"/>
<Book Price="45"/>
</Books>
</Root>
Using an xsl,I want to rename only the Books node to "TechBooks" and this new node will have all the attributes and child nodes which the oroginal node has.
So the new xml will be :
<Root>
<TechBooks Name="C++" Author="Unknown">
<Book Price="30"/>
<Book Price="50"/>
<Book Price="45"/>
</TechBooks>
</Root>
Can u pls tell me the best possible way to do this in xsl...?
Thanks