title: $.getJSON or $.ajax alternative for XML retrieval
body: <p>I've started to work on a private project. However, in the first stage, I am already facing a problem.</p>
  
  <ol>
  <li>The returned data is in XML format (not that bad, but takes a lot of effort to parse to usable objects)</li>
  <li><p>The remote server doesn't accept any ORIGIN except for himself, so the browser throws the error: Origin * is not allowed by Access-Control-Allow-Origin.</p>
  
  <ul>
  <li>the (*) could either be null, localhost, or my website.</li>
  </ul></li>
  </ol>
  
  <p>So I have been searching, but unable to find any results.</p>
  
  <p>It appears that there is no alternative for the jsonp argument when using <code>$.ajax</code>, and the name <code>$.getJSON</code> is as it says, meant to retrieve <code>JSON</code>, not <code>XML</code>.</p>
  
  <p>So I'm wondering, if there is any other alternative method to retrieve the external XML data while disabling the ORIGIN property when sending the request?</p>
  
  <hr>
  
  <p>I've noticed it is possible to obtain the contents with the PHP function: file_get_contents. But I'd really like to know if there is a different way using JQuery.</p>
  
  <p>And if anyone knows how I could let JQuery communicate with the returned PHP file contents, please feel free to enlight me :']</p>
  
  <hr>
  
  <p>Solved. Please refer to the following post: <a href="https://stackoverflow.com/questions/15713150/getjson-or-ajax-alternative-for-xml-retrieval/15716839#15716839">$.getJSON or $.ajax alternative for XML retrieval</a></p>