title: Display object.responseXML text for debugging
body: <p>I'm using the following script:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt; 
      function processResult(xData, status) { 
         $('.feedbackLink').empty(); 
          alert ($(xData.responseXML.xml));
          console.log($(xData.responseXML.xml));
          $(xData.responseXML).find("z\\:row").each(function() { 
              alert ($(this));
              var title = $(this).attr("ows_Title"); 
              var url = $(this).attr("ows_Contact"); 
              $('.feedbackLink').append("&lt;a href="+url+"&gt;"+title+"&lt;/a&gt;"); 
         }); 
  
     };
  
     $(document).ready(function() { 
     alert("ready"); 
         var soapEnv = "&lt;?xml version='1.0' encoding='utf-8'?&gt; &lt;soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'&gt; &lt;soapenv:Body&gt; &lt;GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'&gt; &lt;listName&gt;Pages&lt;/listName&gt; &lt;viewFields&gt; &lt;ViewFields&gt; &lt;FieldRef Name='Title' /&gt; &lt;FieldRef Name='Contact' /&gt; &lt;/ViewFields&gt; &lt;/viewFields&gt; &lt;/GetListItems&gt; &lt;/soapenv:Body&gt; &lt;/soapenv:Envelope&gt;";       
         $.ajax({ 
             url: "/_vti_bin/lists.asmx", 
             type: "POST", 
             dataType: "xml", 
             data: soapEnv, 
             complete: processResult, 
             contentType: "text/xml; charset=\"utf-8\"" 
         });
         alert(soapEnv); 
     }); 
  
      &lt;/script&gt;
  </code></pre>
  
  <p>But the alert within <code>$(xData.responseXML).find("z\\:row").each(function() {</code> wont fire. How can I view the responseXML? I want to double check I'm looking for the right identifiers (I dont know where the <code>ows_</code> came from, I was given this script to work with). </p>
  
  <p>The alert and console.log just displays [object Object]. </p>
  
  <p>Any advice on how to debug this?</p>