xmlDOM的问题
<%
Set doc=Server.CreateObject("Microsoft.XMLDOM")
doc.async=false
doc.Load("livescore_xml.asp")
Set objRootNode=doc.documentElement
for each objNodeList in objRootNode.childNodes
Response.Write("<tr/><td align=center />"&objNodeList.selectSingleNode("LeagueName").text)
Response.Write("<td align=center />"&objNodeList.selectSingleNode("DateMatch").text)
Response.Write("<td align=center />"&objNodeList.selectSingleNode("HomeTeam").text)
Response.Write("<td align=center />"&objNodeList.selectSingleNode("AwayTeam").text)
next
set doc=nothing
%>
为什么运行时IE报以下错误,是否错误在这一行"for each objNodeList in objRootNode.childNodes",应该如何改???:
Technical Information (for support personnel)
Error Type:
Microsoft VBScript 运行时错误 (0x800A01A8)
缺少对象
/score/x.asp, line 60
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2)
Page:
GET /score/x.asp
Time:
2004年7月19日, 10:00:35