ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > Living Room

How do you sort an XML file?

(1/1)

daddydave:
You have an XML file containing data. You have a frequent need to sort this XML file by various text elements within the XML file: last update time, name, category, image resolution, for example. How do you do it? (You can use a command line program or a GUI, or maybe there's some way to do this in Excel?)

Veign:
Using XSL to Sort and Filter Your Data:
http://msdn.microsoft.com/en-us/library/ms950734.aspx

How to use XPath and Sorting in XML
http://www.developer.com/xml/article.php/1560361/How-to-use-XPath-and-Sorting-in-XML.htm

daddydave:
Thanks Veign, that looks useful and reminded me of a powershell script I ran across when searching for ways to configure Intellitype (which also uses an xml file).

Navigation

[0] Message Index

Go to full version