var xmldoc = new ActiveXObject("Msxml2.DOMDocument");

xmldoc.async = false; //get xmldata, if the result is null, then redirect to home page
var xmlStr = '<%= (String)request.getSession().getAttribute("ACTIVATIONS")%>';
if ( xmlStr != "null" ) {
xmldoc.loadXML(xmlStr);
}
else {
navigate("/showActivationsAction.do");
return;
}

var bindDoc = document.createElement("<xml id='xmlDS'></xml>");
document.body.insertBefore(bindDoc);
//alert(xmldoc.documentElement.xml);
bindDoc.appendChild(xmldoc.documentElement);

rootElement = bindDoc.documentElement;请问,以上这段代码,应该如何改动,才可能使它可以在firefox浏览器中跑起来?