xml字符串cc.xml内容如下
<?xml version="1.0" encoding="GBK"?><tree id="1"><item text="d的" id="0" child="1" /></tree>
采用
tree=new dhtmlXTreeObject("doctree_box","100%","100%",1);
tree.setXMLAutoLoading("cc.xml");
tree.loadXML("cc.xml");
提示
Errot type:LoadXML
Description:Incorrect XML Error type:DataStructure
Description:Xml reffers to not existing parent
请大家帮忙解决一下。
<?xml version="1.0" encoding="GBK"?><tree id="1"><item text="d的" id="0" child="1" /></tree>
采用
tree=new dhtmlXTreeObject("doctree_box","100%","100%",1);
tree.setXMLAutoLoading("cc.xml");
tree.loadXML("cc.xml");
提示
Errot type:LoadXML
Description:Incorrect XML Error type:DataStructure
Description:Xml reffers to not existing parent
请大家帮忙解决一下。
loadXML() 方法用于加载字符串(文本),load() 用于加载文件。
load("***.xml")这是加载xml文件,不过需要xml对象来加载