标签:
Parsing the XML Response
get the root node: var rootNode = document.wlXmls[0].XMLDocument.documentElement
function InitAgenda(){ wlGlobals.ParseXML = true }
wlHttp.GetXML = true; var XMLresponse = document.wlXmls[0]; var XMLDoc = XMLresponse.XMLDocument; var element = XMLDoc.documentElement; //InfoMessage("The name of the root node is: " + element.nodeName); var fisrtChildNode = element.childNodes.item(0); // get the <PerformanceId> node var perfNode = fisrtChildNode.childNodes.item(0); // get the first <PerformanceIdObjectBase> node var perfId = perfNode.childNotes.item(0).nodeValue; // get the text node and get its value:0P0000007E
标签:
原文地址:http://www.cnblogs.com/tomweng/p/4186228.html