CLASS_WINDOW();
var doc = new CLASS_XML("xml/data.xml")
//用于直接加载时获得根接点
var rootXml = doc.root();
var root = getRootNode(rootXml);
//dom.js
loadChild(root,rootXml);
doc.dispose();
root.setup(document.getElementById("divTree"));
bt_newitem.onclick = function(){
if(Global.selectedNode!=null){
writeDate(document.frames.fraGeneral,"");
changeModel(0);
var o = new Node("新接点","javascript:writeCode()","fraGeneral");
if(Global.selectedNode.childNodes.length>0&&Global.selectedNode.load==false){
Global.selectedNode.expand();
Global.selectedNode.load = false;
}else{
Global.selectedNode.load = true;
}
Global.selectedNode.add(o);
o.select();
o.edit();
var o_xml = new CLASS_XML("xml/data.xml");
var n = o_xml.selectSingleNode("//*[@id=" + o.parent.key + "]");
var q = o_xml.createElement("item");
q.setAttribute("name","新接点");
q.setAttribute("id",o.key);
n.appendChild(q);
//保存菜单文件
&