sorting xml nodes alphabatically
Posted: Sat Mar 14, 2009 5:55 am
is there any way i can sort the xml nodes list based on one of the attributes value?
i want to get the list sorted according to myvar..
i am right now using simplexml for parsing and getting the data.
Code: Select all
<node id="1" name="xyz">
<myvar>usa</myvar>
</node>
<node id="2" name="dsd">
<myvar>india</myvar>
</node>
......
i am right now using simplexml for parsing and getting the data.