XML sort

rgf21

New member
Joined
Aug 10, 2007
Messages
3
Programming Experience
5-10
Hi. How can I sort a xml file by an attribute value?

Thanks
 
In what context do you mean sort? Sorting is normally an attribute of the presentation of data, ie when you view/display it. If you mean sorting the actual file content use serialization and regular array sort.
 
I want to open a file, then sort the file, them save the file. My problem is I have different node names with a common attribute I want use to sort...
 
That might be a problem, I don't quite see the xml structure, post a xml sample and explain.
 
Back
Top