0
当像下面这样解析XML时,book.xml需要是XML的静态文件还是可以使用RSS的动态提要url?供稿网址是否需要以XML格式结尾,还是只能是网址(例如:http://feeds.voices.washingtonpost.com/wp/reliable-source/index)?xml feed vs xml文档解析 - 区别?
if (window.XMLHttpRequest)
{
xhttp=new XMLHttpRequest();
}
else // IE 5/6
{
xhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xhttp.open("GET","books.xml",false);
xhttp.send();
xmlDoc=xhttp.responseXML;
你为什么不试试看它是否有效? – 2011-01-05 23:32:28
我尝试过,没有工作。假设我试图找出问题。不过谢谢你。 – 2011-01-06 17:48:22