Categories | Question details Back To List | ||
Load XML Errors( Error type: DataStructure Description: XML reffers to not existing parent ) in the file id ok =================================================================== <?xml version="1.0" encoding="utf-8"?> <tree id="0"> <item text="notice" id="books" open="1" call="onefuc" select="0"> <item text="1" id="4028803c1c7b235f011c7b2d1d700005" ></item> <item text="2" id="4028803c1c9f1519011c9f16a62c0002" ></item> <item text="3 " id="4028803c1cbbc859011cbbdcfa3f0004" ></item> <item text="4" id="4028803c1cbd01f2011cbd2cf530000b" ></item> <item text="5" id="4028803c1cc5e7a6011cc650bd23000a" ></item> <item text="6" id="4028803c1cda3606011cda43ccb30023" ></item> <item text="7" id="4028803c1cda4ccb011cdb01ed44000e" ></item> </item> </tree> =================================================================== but if i use jsp to out,the errors is out, help...... =================================================================== js code: =================================================================== tree=new dhtmlXTreeObject("systemmenu","100%","100%",1); tree.setImagePath("<%=path%>/resource/feohoojs/tree/imgs/csh_scbrblue/"); //tree.loadXML("<%=path%>/resource/feohoojs/tree/xml/tree_b.xml"); //is ok, the same code tree.setXMLAutoLoading("<%=path%>/projectmenu.do"); tree.loadXML("<%=path%>/projectmenu.do"); Answer posted by Support on Oct 09, 2008 07:22 The top level ID in XML and ID assigned to the tree are not equal tree=new dhtmlXTreeObject("systemmenu","100%","100%",1); // <= you set top level ID as 1 <tree id="0"> <= in XML you have top level ID as 0 Answer posted by feohoo on Oct 12, 2008 02:27 thank you ! |