Have you received this XML file via an XMLHttpRequest
? If so, you can use its responseXML
property.
alert(xhr.responseXML.documentElement.getAttribute("statusLocation"));
Or with jQuery:
$.ajax({
type: "GET",
url: "yourfile.xml",
dataType: "xml",
success: function(xml) {
alert(xml.documentElement.getAttribute("statusLocation"));
}
});