title: What must I do to circumvent the JavaScript same-origin policy for JSON... And can that work for XML data as well?
body: <p>I have question about the same origin policy...</p>
  
  <p>I have JavaScript code using JSON and XML data. I know I need to change JSON to JSONP, since my server is on a different domain, but do I only do that in the client side? And what about the XML data? Can that also be loaded cross-domain somehow? </p>
  
  <p>Finally, are there any good websites explaining this in-depth, with examples?</p>