| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|Subscribe and Support WebmasterWorld|
|simplexml load string question|
| 11:55 am on Jan 27, 2011 (gmt 0)|
I'm using simplexml_load_string to load an xml file. Is it possible to order the xml returned by node name.
Example the xml is always returned ordered by <item> but I want to output by <distance>
Any help really appreciated.
| 3:32 pm on Feb 3, 2011 (gmt 0)|
You will likely need to assign the nodes to an array (but if memory serves me correctly, they are already in an array) and then use a custom call back function to sort the array.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved