I\'m already parsing xml successfully but i\'m stuck at getting an attribute of childrens.
XML Example:
<
try this out
$.ajax({
type: "GET",
url: 'data.xml,
dataType: "xml",
success: function(xml) {
$(xml).find('entry').each(function(){
var $entry = $(this);
var pic = $entry.find('picture').attr('url');
alert(pic);
})
},
error: function(xhr, status, error) {
if (xhr.status != 404) {alert(error);} else {alert("404 xml not found");}
}
})