用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);
xmlhttp.onreadystatechange = function(){
//判断及处理函数。
alert(xmlhttp.responseText);
}
xmlhttp.open("get","包含XML格式的字符串的文件路径",true);
xmlhttp.send(null);
document.implementation.createDocument("", "" null);
http://my.opera.com/jlake/blog/show.dml/103375
http://www.webreference.com/programming/javascript/domwrapper/2.html