您的位置:首页 > 其它

XML检测节点是否存在

2008-01-22 12:24 295 查看
<%
url=http://www.hope365.com/sitmap.xml
'response.write url
'response.end
Set http=Server.CreateObject("Microsoft.XMLHTTP")
http.open "GET",url,False
http.send
Set xml=Server.CreateObject("Microsoft.XMLDOM")
xml.Async=false
xml.ValidateOnParse=False
xml.Load(http.ResponseXML)

Set node = xml.SelectSingleNode("//sessionid")
If node Is Nothing Then
response.write "a"
Else
response.write "b"
End If

%> 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  xml url