title: Javascript XML Read Error on Chrome and IE
body: <p>It works for Firefox but not for Chrome and IE.</p>
  
  <p>I try it on local.
  I get error on httpObj.send( null ); line.</p>
  
  <p>How can i handle this problem ?</p>
  
  <p><strong>HTML File</strong></p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
      &lt;title&gt;XML READ&lt;/title&gt;
      &lt;script type="text/javascript"&gt;
  //---
          function GetXml() {
  
              if (window.XMLHttpRequest) {
  
                  var httpObj = new XMLHttpRequest();
              } else {
  
                  var httpObj = new ActiveXObject("Microsoft.XMLHTTP");
              }
  
              httpObj.open("GET", "notification.xml", false);
  
          // Error Starts Here    
              httpObj.send( null );
  
              var xmlDocument = httpObj.responseXML;
  
              var xmlEl = xmlDocument.getElementsByTagName("haber");
  
    //--          
              for (i = 0; i &lt; xmlEl.length; i++) {
  
  
                  for (j = 0; j &lt; xmlEl[i].childNodes.length; j++) {
  
                      if (xmlEl[i].childNodes[j].nodeType != 1) {
                          continue;
                      }
  
                      alert(xmlEl[i].childNodes[j].firstChild.nodeValue);
                  }
  
  
              }
  
  
  
          }
  
  
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload="GetXml()"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>XML File</strong></p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8" ?&gt;
      &lt;notifications&gt;
  
          &lt;notification id="001"&gt;
              &lt;name&gt;First&lt;/name&gt;
          &lt;/notification&gt;
  
          &lt;notification id="002"&gt;
              &lt;name&gt;Second&lt;/name&gt;
  
          &lt;/notification&gt;
  
      &lt;/notifications&gt;
  </code></pre>