Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • June 23, 2017, 03:49:55 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: How do you sort an XML file?  (Read 1389 times)

daddydave

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 822
    • View Profile
    • Donate to Member
How do you sort an XML file?
« on: June 23, 2010, 11:17:53 AM »
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?)
« Last Edit: June 23, 2010, 11:20:19 AM by daddydave »

Veign

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 993
    • View Profile
    • Donate to Member
Re: How do you sort an XML file?
« Reply #1 on: June 23, 2010, 11:22:39 AM »
Using XSL to Sort and Filter Your Data:
http://msdn.microsof...ibrary/ms950734.aspx

How to use XPath and Sorting in XML
http://www.developer...d-Sorting-in-XML.htm

daddydave

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 822
    • View Profile
    • Donate to Member
Re: How do you sort an XML file?
« Reply #2 on: June 23, 2010, 11:49:00 AM »
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).