title: unable to load xml data into IE browser
body: <p>i am using the below code from w3schools to load xml data into my html page.BUt its working in mozilla browser only, no other browser is giving any output...Please check the code for the necessary changes to be made</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
  function loadXMLDoc(dname)
  {
  if (window.XMLHttpRequest)
  {
  xhttp=new XMLHttpRequest();
  }
  else
  {
    xhttp=new ActiveXObject("Microsoft.XMLHTTP");
   }
   xhttp.open("GET",dname,false);
   xhttp.send("");
  return xhttp.responseXML;
  }
  
  function displayResult()
  {
  xml=loadXMLDoc("cdcatalog.xml");
  xsl=loadXMLDoc("cdcatalog.xsl");
  // code for IE
  if (window.ActiveXObject)
  {
   ex=xml.transformNode(xsl);
  document.getElementById("example").innerHTML=ex;
  }
  // code for Mozilla, Firefox, Opera, etc.
  else if (document.implementation &amp;&amp; document.implementation.createDocument)
  {
  xsltProcessor=new XSLTProcessor();
   xsltProcessor.importStylesheet(xsl);
   resultDocument = xsltProcessor.transformToFragment(xml,document);
    document.getElementById("example").appendChild(resultDocument);
   }
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload="displayResult()"&gt;
  &lt;div id="example" /&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>