Changing xml order

hello:
i load an xml file into flash for my mp3 player.
xml file looks like this;

<songs>
<song id=“1” name=“song 1 name” src=“pathtosong1”>
<song id=“2” name=“song 2 name” src=“pathtosong2”>
<song id=“3” name=“song 3 name” src=“pathtosong3”>
</songs>

In my flash player, i’m trying to rearrange the order of the song by “drag and dropping” the name of the song to the new position;
I then save the “playlist” with the new order.

Is it possible to change the order of the xml nodes in flash then saving it?
(e.g: changing the order of song2 and song3)

<songs>
<song id=“1” name=“song 1 name” src=“pathtosong1”>
<song id=“3” name=“song 3 name” src=“pathtosong3”>
<song id=“2” name=“song 2 name” src=“pathtosong2”>
</songs>

any help is appreciated.
thanks in advance