Read XML file in javascript Syntax: //Retrieving a XML file in IE5 var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.load("xmlfile.xml"); //Cross browser XML file retrieval if (window.ActiveXObject) var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); else if (document.implementation && document.implementation.createDocument) var xmlDoc = document.implementation.createDocument("", "doc", null); xmlDoc.load("xmlfile.xml"); use this syntax to load the xml file
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Syntax:
//Retrieving a XML file in IE5
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.load("xmlfile.xml");
//Cross browser XML file retrieval
if (window.ActiveXObject)
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
else if (document.implementation && document.implementation.createDocument)
var xmlDoc = document.implementation.createDocument("", "doc", null);
xmlDoc.load("xmlfile.xml");
use this syntax to load the xml file