用ajax吧,firefox目前好像不支持xmldomvar xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.onreadystatechange = function(){
//判断及处理函数。
alert(xmlhttp.responseText);
}
xmlhttp.open("get","包含XML格式的字符串的文件路径",true);
xmlhttp.send(null);

解决方案 »

  1.   

    FF 不支持 xmldom ??谁说的??
    document.implementation.createDocument("", "" null);
      

  2.   

    找了一上午,终于发现了个有用的,大家可以看看:
    http://my.opera.com/jlake/blog/show.dml/103375
      

  3.   

    你好了,我又郁闷了,怎么翻出来一个古董贴...再看看这个,实现了更多的东西,比上一个要详细有用N倍
    http://www.webreference.com/programming/javascript/domwrapper/2.html