XML tree wrong display

Hi All,

I have used below lines of code to load my xml.

tree2 = new dhtmlXTreeObject(“treeboxbox_tree2”, “100%”, “100%”, 0);
tree2.setSkin(‘dhx_skyblue’);
tree2.setImagePath(“img/csh_bluebooks/”);
tree2.enableCheckBoxes(1);
tree2.enableThreeStateCheckboxes(true);
tree2.loadXML(loc);

Problem is when I check the loaded xml in tree view in jsp page…in some cases first value of the children values will be automatically expanded (So children and parent elements will be mixed at the same level)

Find the attached wrong tree view of ‘dhtmlXTreeObject’ and correct view how it should be…



Hi,

could you attach a complete demo that reproduces the problem (please use static xml in the sample)

Dear Alexandra ,

Thanx for the reply…

I found the problem, it was in my xml…(2 items having same id (Ahmedabad) !!!)

-Mahendra