I have a dynamic banner with images/info that are saved in an XML file. I'm adding the option for the user to rearrange the images however they like (Jquery sortable) and once I get the new order (which countains the id attribute) I would like to rearrange without having to copy each node's infos and saving it again in the new order. For instance:
<banners>
<banner id="1001">
<infos...>
</banner>
<banner id="1003">
<infos...>
</banner>
<banner id="900">
<infos...>
</banner>
</banners>
Say the user rearranged to 900, 1003, 1001. I would like to be able to get the nodes by the ID# and reposition them accordingly. Is there an easy way of doing that?