Code:
$.ajax({
type: "GET",
url: "book.xml",
dataType:"xml",
success: function(xml) {
$(xml).find('attributes').each(function(){
var bg=$(this).find('background').text();
});
}
});
Explanation: Using this you can get the datas from the xml file.
$.ajax({
type: "GET",
url: "book.xml",
dataType:"xml",
success: function(xml) {
$(xml).find('attributes').each(function(){
var bg=$(this).find('background').text();
});
}
});
Explanation: Using this you can get the datas from the xml file.
More information: http://think2loud.com/224-reading-xml-with-jquery/