[xsl] Renaming One Element in a XML document using XSL

Subject: [xsl] Renaming One Element in a XML document using XSL
From: "Sian Mace" <sianmace@xxxxxxxxxxx>
Date: Wed, 02 Feb 2005 14:02:22 +0000

I am using Amazon web services and asp.net for a university project.

Im getting the xml back from the web service, but when trying to load in to
asp.net dataset I get problems because Microsoft cannot support XML fully

This is because the xml returned has element names the same in different

What I need to do is to get the whole dataset, which is quite massive, and
just rename the rogue elements to something to make them unique.

Here are the code and examples of what I want.




<Header ></Header>




                                    <Argument Name="Service"


















<DetailPageURL> </DetailPageURL>




















There is the a Height element (and width) in SmallImage, LargeImage and
Medium Image, And .Net Datasets cannot deal with this.

So I need to convert this to something like SmallHeight, MediumHeight ect.

So I want to copy all the document and rename certain nodes.  How can I do

Any help would be greatly appreciated

Current Thread