[xml] sorting in XML



Is there anyway to sort the XML element based on an attribute?
 
e.g:
  <Order>
     <Customer ID="001", Name="ABC", OrderDate = "01/01/2002"/>
     <Customer ID="002", Name="ABD", OrderDate = "03/01/2002"/>
     <Customer ID="003", Name="ABE", OrderDate = "02/01/2002"/>
  </Order>
 
   Can we sort the above XML doc based on OrderDate attribute? Thanks.
 
 
Eric


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]