title: Uncaught SyntaxError: Unexpected token < for AJAX jsonp response?
body: <p>I am getting the following error when making a AJAX call:</p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token &lt;</p>
  </blockquote>
  
  <p>For <code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</code> even though it is the expected response.</p>
  
  <p>Is there a reason why its not processing this XML document properly? How do I wrap the response so it can parse it correctly? Here is my code:</p>
  
  <pre><code>$.ajax({
      type: 'GET',
      url: url,
      dataType: 'jsonp',
      beforeSend: function(xhr) {
          xhr.setRequestHeader('Content-Type', 'application/vnd.cpc.manifest-v3+xml');
          xhr.setRequestHeader('Accept', 'application/vnd.cpc.manifest-v3+xml');
      },
      error: function () {},
      success: function(data) {
          console.log('Success!');
      }
  });
  </code></pre>