Dhtmlxtree - get tree items as xml

Hi,

I want to create a tree for the user , where he will be able to change it’s items order - after doing that I want to get the ‘new’ tree and use that order of items to build a menu.

My question is how can I achive this? is it possible to get the xml of a tree after it was change? or mabye I can use somehow the tree content into a dhtmlxmenu?

Any idea will be very helpfull for me,

Thank’s In Advance.

Hi,

tree provides serializeTree method that returns tree xml:

var str = tree.serializeTree();

docs.dhtmlx.com/doku.php?id=dhtm … oving_tree