title: Jquery AJAX XML data returns syntax error
body: <p>I have a problem as follows:</p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function(){
          $.ajax({
              url: "https://api.domain.com/message.asp",
              type: "POST",
              cache: false,
              contentType: "text/xml",
              dataType: "text",  
              data : "&lt;?xml version=\"1.0\"?&gt;
                          &lt;mainbody&gt;
                              &lt;header&gt;
                                  &lt;company&gt;companyName&lt;/company&gt;
                                  &lt;usercode&gt;323423&lt;/usercode&gt;
                                  &lt;password&gt;543543543&lt;/password&gt;
                                  &lt;startdate&gt;010120150100&lt;/startdate&gt;
                                  &lt;stopdate&gt;170820150100&lt;/stopdate&gt;
                                  &lt;type&gt;1&lt;/type&gt;
                              &lt;/header&gt;
                          &lt;/mainbody&gt;
                      ",
              crossDomain:true,
              success: function(result){
                  alert(result);
              },
              error: function(result) {
                console.log(result);
              }
          });
      });
      &lt;/script&gt;
  </code></pre>
  
  <p>In the code above, the line starting with xml tag returns syntax error as follow: 
        Uncaught SyntaxError: Unexpected token ILLEGAL
  What is wrong in here?</p>