日期:2014-05-20  浏览次数:20847 次

如何可以在firefox中处理XML
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浏览器中跑起来?

------解决方案--------------------
http://www.dynamicdrive.com/forums/archive/index.php/t-4387.html