Question. I am trying to access XML data from a HTTP query from a remote site in ASP. I have found examples, for things close to what I am doing, but nothing exact and seem to be missing a piece.
If I type in a URL I get the xml query results back. Here is an example but the link and data slightly altered for security.
This returns
- <Root xmlns:sql="urn:schemas-microsoft-com:xml-sql">
- <Store regionID="4" storeID="44" storeCode="444" name="My Store 1" >
</Store>
- <Store regionID="5" storeID="55" storeCode="555" name="My Store 2 >
</Store>
</Root>
Now I am trying to retrieve this in ASP, but get an error on the Load Statement.
Set objXML = Server.CreateObject("Microsoft.XMLDOM")
Set objLst = Server.CreateObject("Microsoft.XMLDOM")
Set objHdl = Server.CreateObject("Microsoft.XMLDOM")
objXML.async = False
objXML.Load (" If objXML.parseError.errorCode <> 0 Then
Response.write (objXML.parseError.errorCode)
End If
So basically, I am not sure how to load the data from the query.... If someone can point me in the write direction, that would be awesome.
If I type in a URL I get the xml query results back. Here is an example but the link and data slightly altered for security.
This returns
- <Root xmlns:sql="urn:schemas-microsoft-com:xml-sql">
- <Store regionID="4" storeID="44" storeCode="444" name="My Store 1" >
</Store>
- <Store regionID="5" storeID="55" storeCode="555" name="My Store 2 >
</Store>
</Root>
Now I am trying to retrieve this in ASP, but get an error on the Load Statement.
Set objXML = Server.CreateObject("Microsoft.XMLDOM")
Set objLst = Server.CreateObject("Microsoft.XMLDOM")
Set objHdl = Server.CreateObject("Microsoft.XMLDOM")
objXML.async = False
objXML.Load (" If objXML.parseError.errorCode <> 0 Then
Response.write (objXML.parseError.errorCode)
End If
So basically, I am not sure how to load the data from the query.... If someone can point me in the write direction, that would be awesome.