topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Monday December 16, 2024, 3:14 am
  • Proudly celebrating 15+ 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 3087 times)

daddydave

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

Veign

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 993
    • View Profile
    • Veign - Where design meets development
    • Donate to Member
Re: How do you sort an XML file?
« Reply #1 on: June 23, 2010, 11:22 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: 867
  • test
    • View Profile
    • Donate to Member
Re: How do you sort an XML file?
« Reply #2 on: June 23, 2010, 11:49 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).