Hi,
I am getting the following error and I haven't got a clue why!
Microsoft VBScript runtime error '800a01a8'
Object required: 'True'
/bsci98/cmurphy/ResearchProject/weathertest.asp, line 41
line 41 is highlighted in red below.
If anyone can help I would really appreciate it...please!!!
<%
'set xmlDoc=CreateObject("Microsoft.XMLDOM"
'xmlDoc.async="false"
'xmlDoc.load("weathertest.xml"
Dim oDocument
Dim sXMLFile
Dim xmlDoc
sXMLFile = "weather.xml"
'Create instance of XML document object
Set oDocument = Server.CreateObject("MSXML2.FreeThreadedDOMDocument.3.0"
If oDocument is Nothing Then
Response.Write "oDocument object not created<br>"
Else
If Err Then
Response.Write "XML DomDocument Object Creation Error - <BR>"
Response.write Err.Description
Else
'Load up the XML document into the XML object
oDocument.async = False
xmlDoc= oDocument.load(Server.MapPath(sXMLFile))
If (xmlDoc= False) Then
'Failed to parse so write out an error
response.write "failed"
Else
dim x
response.write "test"
for each x in xmlDoc.documentElement.childNodes
Response.write(x.nodename)
Response.write(": "
Response.write(x.text)
next
End If
End If
End If
%>
I am getting the following error and I haven't got a clue why!
Microsoft VBScript runtime error '800a01a8'
Object required: 'True'
/bsci98/cmurphy/ResearchProject/weathertest.asp, line 41
line 41 is highlighted in red below.
If anyone can help I would really appreciate it...please!!!
<%
'set xmlDoc=CreateObject("Microsoft.XMLDOM"
'xmlDoc.async="false"
'xmlDoc.load("weathertest.xml"
Dim oDocument
Dim sXMLFile
Dim xmlDoc
sXMLFile = "weather.xml"
'Create instance of XML document object
Set oDocument = Server.CreateObject("MSXML2.FreeThreadedDOMDocument.3.0"
If oDocument is Nothing Then
Response.Write "oDocument object not created<br>"
Else
If Err Then
Response.Write "XML DomDocument Object Creation Error - <BR>"
Response.write Err.Description
Else
'Load up the XML document into the XML object
oDocument.async = False
xmlDoc= oDocument.load(Server.MapPath(sXMLFile))
If (xmlDoc= False) Then
'Failed to parse so write out an error
response.write "failed"
Else
dim x
response.write "test"
for each x in xmlDoc.documentElement.childNodes
Response.write(x.nodename)
Response.write(": "
Response.write(x.text)
next
End If
End If
End If
%>