I am writing a feed reader using Classic ASP and have come across a problem.
Below is the first part of my code, which works just fine for most RSS feeds. However, when I plugged in the value for Feed you see here in the code, the last line bombs with an "Object required" error.
Dim XML, Feed, Text, ItemChild
Feed = "set XML = Server.CreateObject("MSXML2.ServerXMLHTTP")
XML.Open "GET", Feed, False
XML.Send
set objText = XML.ResponseXML
Set XML = nothing
Set htmlElement = objText.documentElement
Set NodeList = htmlElement.getElementsByTagName("item")
The feed does exist, validates and has <item> elements, so I cannot figure out why I am getting the error.
Any help in understanding where the problem lies would be greatly appreciated.
Cheers -
george
Below is the first part of my code, which works just fine for most RSS feeds. However, when I plugged in the value for Feed you see here in the code, the last line bombs with an "Object required" error.
Dim XML, Feed, Text, ItemChild
Feed = "set XML = Server.CreateObject("MSXML2.ServerXMLHTTP")
XML.Open "GET", Feed, False
XML.Send
set objText = XML.ResponseXML
Set XML = nothing
Set htmlElement = objText.documentElement
Set NodeList = htmlElement.getElementsByTagName("item")
The feed does exist, validates and has <item> elements, so I cannot figure out why I am getting the error.
Any help in understanding where the problem lies would be greatly appreciated.
Cheers -
george