Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

XSLT - How can i sort attributes in all tags by name?

$
0
0

I have following xml.

<?xml version="1.0" encoding="utf-8"?><Parameters c="1" d="3" a="5" b="3"><Parameters.Test c4="4" d2="2" a1="1" b8="8"><Test g="1" a="3"/></Parameters.Test></Parameters>

I want to transform this xml to below xml.

<?xml version="1.0" encoding="utf-8"?><Parameters a="5" b="3" c="1" d="3"><Parameters.Test a1="1" b8="8" c4="4" d2="2"><Test a="3" g="1"/></Parameters.Test></Parameters>

How can i do this using xslt?


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>