title: XML Parsing not working in IE
body: <p>I am trying to parse a XML file, it works perfectly in FF but dont in IE. Pls help debug this. The code is as follows.</p>
  
  <pre><code>if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
    }
  else
    {// code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  xmlhttp.open("GET","books.xml",false);
  xmlhttp.send();
  xmlDoc=xmlhttp.responseXML; 
  
  document.write("&lt;table border='1'&gt;");
  var x=xmlDoc.getElementsByTagName("StepName");
  for (i=0;i&lt;x.length;i++)
    { 
    document.write("&lt;tr&gt;&lt;td&gt;");
    document.write(x[i].getAttribute("name")); 
    document.write("&lt;/td&gt;&lt;td&gt;");  
    document.write(x[i].getElementsByTagName("StepStatus")[0].childNodes[0].nodeValue);
    document.write("&lt;/td&gt;&lt;td&gt;");
    document.write(x[i].getElementsByTagName("StepDescription")[0].childNodes[0].nodeValue);
    document.write("&lt;/td&gt;&lt;/tr&gt;");
    }
  document.write("&lt;/table&gt;");
  </code></pre>