php - Re-ordering nodes in an xml via jquery ui drag and drop -


i hope can me here...

i working on small piece of code allow me re-order nodes in xml file via jquery ui sortable interface.

take following xml file:

<root>    <page1>      <content>        content 1      </content>    </page1>    <page2>      <content>        content 2      </content>    </page2>    <page3>      <content>        content 3      </content>    </page3> </root> 

i have been able use php to build drag , drop interface based on number of nodes in xml file. trying achieve way of saving new order of xml files when data passed sortable interface. jquery ui, can ids required , able pass onto php. main issue how manipulate xml file following result:

<root>    <page1>      <content>        content 3      </content>    </page1>    <page2>      <content>        content 1      </content>    </page2>    <page3>      <content>        content 2      </content>    </page3> </root> 

hope making sense , hope has idea of how can achieve this. possible domdocument believe simplexml not powerful enough handle such task.

my day made if solution can attained.

thanks.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -