$.ajax({ type: "GET", url: "http://www.xmlfiles.com/examples/note.xml", dataType: "xml", success: function(xml){ $(xml).find('note').each(function(){ var to = $(this).find('to').text(); console.log(to); }); }, error: function() { alert("An error occurred while processing XML file."); } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)