asp读取xml 文件 提示缺少对象
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%><%
'从xml 文件中利用文档模型节点读取信息
dim oXML,oXMLRoot
'创建一个xmldom实例
set oXML = Server.CreateObject("Microsoft.XMLDOM")
oXML.load(server.mappath("www\asp_text\guest\vip.xml"))
set oXMLRoot = oXML.documentElement '创建文档对象,相当于光标
set username = oXMLRoot.selectSingleNode("//username") '提示这一行缺少对象
set face = oXMLRoot.selectSingleNode("//face")
set email = oXMLRoot.selectSingleNode("//email")
set useurl = oXMLRoot.selectSingleNode("//useurl")
vusername = username.text
vface = face.text
vemail = email.text
vuseurl = useurl.text
set username = nothing
set face = nothing
set email = nothing
set useurl = nothing
set oxmlRoot = nothing
set oxml = nothing
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>留言系统</title>
<link href="style/basic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--#include file="header.asp"-->
<!--#include file="nav.asp"-->
<div id="content">
<div class="left">
<div class="newguest">
<H6>新进会员:<% = vusername %></H6>
<dl>
<dt><img src=<%= vface%> /></dt>
<dd>给我留言|发私信</dd>
<dd>给我送花|发短信</dd>
<dd>网址:</dd>
<dd>邮箱:</dd>
</dl>
</div>
</div>
<div class="right">
<div class="article">
<H6>文章列表</H6>
</div>
</div>
</div>
<!--#include file="footer.asp"-->
</body>
</html>