title: Jquery access body within html and convert to json fails
body: <p>I am trying to access the body of an external HTML page with jquery. The body of that page contains an XML structure, which I would like to transform to JSON for further data accessing.</p>
  
  <pre><code>$.ajax({        
             url:'http://pruebanico.comze.com/testxml.html',  
             dataType:'html',
             type:'POST',
             timeout:20000,  
             success:function(response, status) {         
  
                var xmlDoc = $.parseXML(response);
                xmlBody = xmlDoc.find('body');
                alert(xmlBody);
                var jsonString = xml2json(xmlBody, '', html);
                alert(jsonString);
  
   }
  </code></pre>
  
  <p>I am using the following xml2json converter: <a href="http://www.thomasfrank.se/xml_to_json.html" rel="nofollow">http://www.thomasfrank.se/xml_to_json.html</a>.</p>
  
  <p>The first alert (xmlBody) is empty. I wanted to parse the text content of the body to a valid XML structure as input for the xml2json function, but without much success. </p>