xmldoc = new ActiveXObject("Msxml2.XMLHTTP");
xmldoc.open("GET","http://www.asdf/4152314.xml",false);
xmldoc.send();
xml = xmldoc.responseXML
xmldoc.open("GET","http://www.asdf/4152314.xml",false);
xmldoc.send();
xml = xmldoc.responseXML
var root = xmlMatchDoc.documentElement.selectSingleNode("//matches");但用你那个好像获取不到哦.
==>
var root = xmlMatchDoc.responseXML.documentElement.selectSingleNode("//matches");<script>
function repeat() {
xmlMatchDoc = new ActiveXObject("Msxml2.XMLHTTP");
xmlMatchDoc.open("GET","http://community.csdn.net/Expert/topic/4749/4749478.xml",false);
xmlMatchDoc.send();s=xmlMatchDoc.responseXML.documentElement.selectSingleNode("//TopicName");alert(s.text)
}repeat();
</script>
var xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
xmlHttp.open("GET","http://www.asdf/4152314.xml",false);
xmlHttp.send();
var xmldoc = xmlHttp.responseXML
字符:1
错误:没有权限
代码:0
URL:XXXXXX
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
xmlHttp.open "GET","http://www.asdf/4152314.xml",false;
xmlHttp.send();
xmldoc = xmlHttp.responseXML
%>