Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jean on Apr 04, 2008 01:49
open dhtmlx forum
DHTMLXTree - Serialization / loading XML String

Oops... re-posting as question (!)...

Hi,

Then I have another question: Can you do something like this ?

      myTree.setSerializationLevel(false, true);
      var contextTreeXml = myTree.serializeTree();
      myTree.deleteChildItems(0);
      myTree.loadXMLString(contextTreeXml);

Regards,
Jean.

Answer posted by Support on Apr 04, 2008 02:23
Yes, you can.

But, please, be sure that the contextTreeXml is a correct xml string (if you placed some html in tree, html should be encoded).