/* exported xmlDoc xmlDOMModel loadDocumentXML getNode getTagValue getNodesXML */ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ var xmlDoc=""; var xmlDOMModel=""; function loadDocumentXML(doc) { var xhttp; if (window.XMLHttpRequest) { xhttp=new XMLHttpRequest(); xmlDOMModel=""; } else // for IE 5/6 { xhttp=new ActiveXObject("Microsoft.XMLHTTP"); xmlDOMModel="IE"; } xhttp.open("GET",doc,false); xhttp.send(); xmlDoc=xhttp.responseXML; /* if (window.DOMParser) { parser=new DOMParser(); xmlDoc=parser.parseFromString(doc,"text/xml"); xmlDOMModel=""; } else // Internet Explorer { try { xmlDoc = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlDoc = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } */ //xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); //xmlDoc.async="false"; // xmlDoc.loadXML(doc); // xmlDOMModel="IE"; // } } function getNode(mainNode,path) { var tags = path.split('/'); var node = new Array(); node[0] = mainNode; for (var i=0;i