为什么xmlhttp请求不能返回XML类型数据
Data.asp
-----------------------------
<html>
<head>
<script language="JScript">
function PostXML()
{
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
var xmlhttps = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.Open("Post","http://127.0.0.1/xml/GetXML.asp",false);
xmlhttp.Send("");
document.write(xmlhttp.responseXML);
}
</script>
</head>
<body>
<script>
PostXML();
</script>
</body>
</html>
---------------------------
GetXML.asp
----------------------------
<%
Response.Write "<?xml version='1.0' encoding='gb2312' ?>" & vbcrlf
Response.Write "<论坛>" & vbcrlf
Response.Write "<主论坛 id='1' title='Web' XMLSrc='Tree.asp?id=1'>" & vbcrlf
Response.Write "<分论坛 id='1' title='ASP' XMLSrc='ASP.xml'>ASP</分论坛>" & vbcrlf
Response.Write "<分论坛 id='2' title='ASP.Net' XMLSrc='DotNet.xml'>ASP.Net</分论坛>" & vbcrlf
Response.Write "<分论坛 id='3' title='JSP' XMLSrc='JSP.xml'>JSP</分论坛>" & vbcrlf
Response.Write "<分论坛 id='4' title='PHP' XMLSrc='PHP.xml'>PHP</分论坛>" & vbcrlf
Response.Write "<分论坛 id='5' title='CGI' XMLSrc='CGI.xml'>CGI</分论坛>" & vbcrlf
Response.Write "<分论坛 id='6' title='XML|SOAP' XMLSrc='XML.xml'>XML|SOAP</分论坛>" & vbcrlf
Response.Write "</主论坛>" & vbcrlf
Response.Write "</论坛>"
%>
为什么xmlhttp请求不能返回XML数据,输出xmlhttp.responseXML结果为undefined(未定义),请教!