dhtmlXLayout / attachTree / Error type: DataStructure

I don’t know how to make it easyer:

var Tree = LayoutSlave.cells(“a”).attachTree(0);
Tree.setImagePath("/js/dhtmlxTree/codebase/imgs/");
Tree.loadXMLString(’<?xml version="1.0" encoding="iso-8859-1" ?><tree id=“0”>’);

But that is the result:

Error type: DataStructure
Description: XML reffers to not existing parent

I would be happy about any hint! Thank you!



Try this:

Tree.loadXMLString(’<?xml version="1.0" encoding="iso-8859-1" ?><tree id=“0”><item
text=“Mystery & Thrillers” id=“mystery”
/>’);

No, that’s not the solution.

Now I have change to Tree.loadXML("/getxml.cgi") and it solved the problem. I think loadXMLString() ist not allowed in this context.




If above situation occurs in IE - it may be caused by used encoding. While loading data from XML string IE limited to UTF encoding only. ( limitation of browser, can’t be changed )