re-sorting an XML tree
i am using the current version of Apache xalan/Xerces and i am facing a problem with re-sorting an XML file.
The file is sorted by 'InternalId' but is has to be sorted by the 'name' attribute. I tried to order all 'category' elements including their child nodes without loosing any attribute or sub elements with different statements like:
<xsl:copy-of select = "category/@name" />
...but i just can't get it to work right. (he hole file even has a lot more nested nodes) I do get an XML file as follows out of a system (i am unable to influence):
<taxonomy name="web_taxonomy" className="Generic" internalId="0b0164e08000367e" taxonomyVersion="1.0">
<category name="040 Services" className="Generic" internalId="0b0164e080003694">
<category name="020 Products" className="Generic" internalId="0b0164e080003695">
<category name="010 Library" className="Generic" internalId="0b0164e080003696">
<-- snip -->
Thx a lot, i appreciate your help!
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format