Error: XML refers to not existing parent

I am trying to learn how to use dhtmlxTree and get the error
Incorrect XML
“XML refers to not existing parent”

Here is the code I have in the file index.html

[code]

DHTMLX Package - Test
[/code]

Where is the problem?

Check that php/get.php returns correct xml.

Moreover it’s possible to combile to ways to of tree initialization: automatic and dhtmlXTreeObject. You should choose one of them.

If you want to use automatic initialization and add new items to the existent structure, you may try the following method:

[code]<div oninit=“doAfterInit()” enableItemEditor=“true” enableDragAndDrop=“true” setSkin=“dhx_skyblue” id=“tree” setImagePath="dhtmlxTree/codebase/imgs/csh_winstyle/ class=“dhtmlxTree”>








function doAfterInit(){

/this method loads additional items/

tree.loadXML(“php/get.php”);
//init dataprocessor and assign verification function;
myDataProcessor = new dataProcessor(“php/update.php”);
//add after-update event handler;
myDataProcessor.attachEvent(“onAfterUpdate”, function(nodeId, cType, newId) {
doLog("Item was " + cType + "ed. Item id is " + newId);
});
myDataProcessor.init(tree);
}[/code]

Well that is one problem, I can’t find the .php files in the samples or anywhere on the site.

Tree package contains the sample of dynamic loading which uses xml.php.

I have downloaded the tree package and I am using it but I can’t make a tree using XML because the php/update.php and php/get.php files are missing.
I have done two different trees using HTML and JSON.