Your problem can be solved using jQuery:
http://knol.google.com/k/xml-parsing-using-jquery#[
^]
Or you can do something similar to:
function parseXML(str) {
if (str == null) return null;
if ($.trim(str) == "") return createDocument();
var dom = str;
if ($.browser.msie) {
dom = new ActiveXObject("Microsoft.XMLDOM");
dom.async = "false";
dom.loadXML(str);
}
else if (typeof (DOMParser) != "undefined") {
var parser = new DOMParser();
try {
dom = parser.parseFromString(str, "text/xml");
} catch (e) { };
}
First try the MS way, then try what usually works with other browsers ...
Best regards
Espen Harlinn