ActiveXObject("Microsoft.XMLDOM") not working in new IE

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?

When you say ‘latest IE’, which version are you referring to? If you mean Edge, then AFAIK it doesn’t support ActiveX objects.

IE 11. I do use Edge but I want to use the ActiveX component in IE 11.

Here’s the documentation.
Use ActiveX controls for Internet Explorer 11 and Internet Explorer 10

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.