It really sounds like the progID is not there. The following VBScript runs
when you save it as a .VBS file and run it from your desktop:
Dim objXMLNews
set objXMLNews = CreateObject("Msxml2.DomDocument.4.0")
objXMLNews.async = False
objXMLNews.ValidateOnParse = false
objXMLNews.load("http://www.bbc.co.uk/syndication/feeds/news/ukfs_news/world
/rss091.xml")
Dim xmlNodeNews
set xmlNodeNews = objXMLNews.documentElement.selectNodes("//item")
Dim xmlNewsItem
dim strResult
For Each xmlNewsItem In xmlNodeNews
strResult = "<a href='" & xmlNewsItem.selectSingleNode("link").Text & "'>"
strResult = strResult &
xmlNewsItem.selectSingleNode("title").Text
strResult = strResult & "</a><br/>"
WScript.Echo(strResult)
Next
--
Kirk Allen Evans
Microsoft MVP, XmlInsider, AspInsider
www.xmlandasp.net
Read my web log at
http://weblogs.asp.net/kaevans
"Rajiv Das" <ra********************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,
I am trying to incorporate Really Simple Syndicate (RSS) news into my asp
(not asp.net) based website. Since RSS is basically XML, I am trying to
open the xml file and parse it. On Asp.net the following code works seamlessly.
I am running IIS 5.1 on Win Xp Sp1.
--------------------------------------------------------------------------
-- Dim objXMLNews
set objXMLNews = Server.CreateObject("Msxml2.DomDocument.4.0")
objXMLNews.async = False
objXMLNews.load("http://www.bbc.co.uk/syndication/feeds/news/ukfs_news/world /rss091.xml")
Dim xmlNodeNews
set xmlNodeNews = objXMLNews.documentElement.selectNodes("//item")
Dim xmlNewsItem
For Each xmlNewsItem In xmlNodeNews
Response.Write("<a href='" &
xmlNewsItem.childNodes.Item(2).Text() & "'>")
Response.Write(xmlNewsItem.childNodes.Item(0).Text ())
Response.Write("</a><br/>")
Next
--------------------------------------------------------------------------
--
However on ASP I get the following error.
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: '[object]'
in this line -> [set xmlNodeNews =
objXMLNews.documentElement.selectNodes("//item")]
Any ideas?
--
----------------
Cheers,
Rajiv Das