RustyDoorknobs Posted July 20, 2010 Share Posted July 20, 2010 Hey, I have some xml, say: <Background> <Uses>14</Uses> </Background> <Background> <Uses>19</Uses> </Background> <Background> <Uses>3</Uses> </Background> How can I sort the xml from lowest Uses to highest? Maybe an xpath expression? Also, how could I just retrieve the bottom 2 Backgrounds, or the ones most recently added? Thanks Link to comment https://forums.phpfreaks.com/topic/208322-sorting-xml-with-simplexmlxpath/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.