Hi! 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?
<script>$(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("<b>Name</b>: "+name+"<br>");
document.write("<b>Email</b>: "+email+"<br>");
document.write("<b>Phone Number</b>: "+phone_number+"<br>");
})
}
});
});
</script>