title: How parse remote XML file with jQuery
body: <p>I use this script to parse an XML file with jQuery, but it run only if I have the XML file in local server. Do you know how can I parse an XML file on remote server?</p>
  
  <pre><code>&lt;script&gt;$(document).ready(function(){
    $.ajax({
      type: "GET",
      url: "http://www.myotherwebsite.com/folder/myfile.xml",
      dataType: "xml",
      success: function(xml){
        $(xml).find("user").each(function(){
          var name = $(this).find("name").text();
          var email = $(this).find("email").text();
          var phone_number = $(this).find("mobile").text();
  
          document.write("&lt;b&gt;Name&lt;/b&gt;: "+name+"&lt;br&gt;");
          document.write("&lt;b&gt;Email&lt;/b&gt;: "+email+"&lt;br&gt;");
          document.write("&lt;b&gt;Phone Number&lt;/b&gt;: "+phone_number+"&lt;br&gt;");
        })
      }
     });
  });
  &lt;/script&gt;
  </code></pre>