Reordering XML Elements in php, with jquery?

How to use PHP with something like jQuery to update an xml file based on reordering of html table rows or list items?

http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/

Here it describes a function to Rearrange/Reorder Elements:
http://quest4knowledge.wordpress.com/2010/09/04/php-xml-create-add-edit-modify-using-dom-simplexml-xpath/

Can they be combined to reorder a longer list of elements?

I’m trying to avoid using mySQL, just php/jquery/xml…

Thanks!