Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Sort xml by the attribute >Thread Next - Re: Sort xml by the attribute Re: Sort xml by the attributeTo: NULL Date: 4/12/2007 2:06:00 PM Anu wrote: > I want sort the following sample xml by the attribute name (i.e sender/ > date). The xml can contains many level of child folder node. My > program need to produce the sorted xml based on the sender/date. > Thanks for your help. > > <folder sender="Sales" date=""> > <leaf sender="user1" date="9/17/2003"/> That date format is not useful for comparison/sorting, change that to e.g. date="2003-09-17" and you can do string comparison for sorting. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
