title: Ajax - responseText working but responseXML null
body: <p>I am trying my first AJAX and having a problem with my xml receiving function. 
  I alert responseText and I can see the xml returned from my server, but when I try and get responseXML I get null and the error.</p>
  
  <p>Here is the php function that builds my xml</p>
  
  <pre><code>  header('Content-type: application/xml');
      echo("&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;");
      echo("&lt;results&gt;");
      echo("&lt;table&gt;&lt;![CDATA[tablereererere]]&gt;&lt;/table&gt;");
      //echo("&lt;ratedTable&gt;".$_POST['ratedTable']."&lt;/ratedTable&gt;\n");
      //echo("&lt;table&gt;".$_POST['table']."&lt;/table&gt;\n");
      //echo("&lt;post_id&gt;".$_POST['post_id']."&lt;/post_id&gt;\n");
      //echo("&lt;user_id&gt;".$_POST['user_id']."&lt;/user_id&gt;\n");
      //echo("&lt;rating&gt;".$_POST['rating']."&lt;/rating&gt;\n");
      echo("&lt;/results&gt;");
  </code></pre>
  
  <p> And here is my javascript function which is processing the returned xml</p>
  
  <pre><code>function ajaxReceiver(http_request) {
  
      //this function continues to run until a result is returned and then it creates the new div
      if(http_request.readyState == 4) {
  
        response_xml = http_request.responseXML;
        response_text =  http_request.responseText;
  
        alert(response_text);
        alert(response_xml.getElementsByTagName("table")[0].textContent);
        //document.getElementById('floatingNotification').innerHTML = response_text;
         // alert(http_request.responseXML.getElementsByTagName("table")[0].textContent);
        //ratedTable = responseXML.getElementsByTagName("table").value;
        //alert(ratedTable);
        //message = response.getElementsByTagName('table')[0].textContent;
        //alert(message);
       //alert(message);
  //this response contains the xml document that was returned by the php function.You can get any values out of the xml document and 
  //use javascript dom to manipulate the contents on the page
  
  
      }
  }
  </code></pre>