title: parsing xml using jquery (malformed xml)
body: <p>I have an XML that looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;export&gt;
    &lt;Article URL="test"&gt;
        &lt;DisplayName&gt;test&lt;/DisplayName&gt;
        &lt;Summary&gt;test&lt;/Summary&gt;
        &lt;ThumbNail ID="test" URL="test" /&gt;
    &lt;/Article&gt;
  &lt;/export&gt;
  </code></pre>
  
  <p>Which I'm looking to parse using jQuery. This works using the following code:</p>
  
  <pre><code>$.ajax({
      url: 'https://[fqdn]/[filename].xml'
  })
  .done(function(xml) {
      $(xml).find('Article').each(function() {
          console.log($(this).attr('URL'));
          console.log($(this).find('DisplayName').text());
          console.log($(this).find('Summary').text());
          console.log($(this).find('ThumbNail').attr('URL'));
      });
  })
  .fail(function(jqXHR, textStatus) {
      console.log(textStatus);
  })
  </code></pre>
  
  <p>All output is logged to the console, but at the end I'm getting an error saying the XML is malformed at line 1 column 78 which is causing my entire script to halt.</p>
  
  <p>Is this the right way to go about this?</p>
  
  <p>Adding dataType: "xml", and/or type: "GET", does not help.</p>