Example to parse Xml using JScript & XMLDOM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Jscript: Parse XML Document */ | |
var oXmlDoc = new ActiveXObject("Microsoft.XMLDOM"); //Create an XML document that you can parse. | |
oXmlDoc.async = false; | |
oXmlDoc.loadXML(resultSet); //Load the XML document that has the UnEncoded results. | |
var results = oXmlDoc.getElementsByTagName('result'); //get the specified node by DOM function | |
var currency = oXmlDoc.selectNodes("//businessinterest")[1].text; //gets the no of nodes with function |