ActiveXObject(“Microsoft.XMLDOM”) is not properly loading a xml file in latest IE.
Relevant code is:
function XMLload(){
//create XML objects
if (window.ActiveXObject){
oXML= new ActiveXObject("Microsoft.XMLDOM");
oXML.async=false;
oXSL= new ActiveXObject("Microsoft.XMLDOM");
oXSL.async=false;
}
else{
oXML=document.implementation.createDocument("","",null);
oXML.async=false;
oXSL=document.implementation.createDocument("","",null);
oXSL.async=false;
}
//load XML document
//SemiYTD2001x.xml is the data file that must be
//uploaded to ATT to view on web
//directory is /xml
oXML.load("Birds2016.xml");
//load xsl and transform xml doc
oXSL.load("BirdsTotal.xsl");
//alert("Document Element--lastChild node: " + oXSL.documentElement.lastChild.nodeName);
xslHTML=oXML.transformNode(oXSL);
//problem with tranformNode method in Foxfire
//alert("XML loaded");
document.all.item("records00").innerHTML=xslHTML;
filter=0;
//alert("XML loaded");
}
How can I fix the problem?