Here is one way to do it:
var xml = null;
function loadXML(myURL){
$.ajax({
type: "GET",
url: myURL,
dataType: ($.browser.msie) ? "text" : "xml",
error: function(){
return;
},
success: function(data){
if (typeof data == "string") {
xml = new ActiveXObject("Microsoft.XMLDOM");
xml.async = false;
xml.loadXML(data);
} else {
xml = data;
}
}
});
};
$(loadXML("common/glossary.xml"));
then
$(xml).find('something')