Welcome to WebmasterWorld Guest from 34.204.169.76

Forum Moderators: ocean10000

Message Too Old, No Replies

Reading RSS/RDF

Problem reading from del.icio.us

     
9:22 pm on Dec 25, 2007 (gmt 0)

New User

10+ Year Member

joined:Sept 26, 2004
posts: 20
votes: 0


Not sure whether to post here or in the RSS forums, but here seems ok.

I'm using the following code to read rss feeds:

[aspnettutorials.com...]

However I"m having problems getting it to work with del.icio.us which is based on rdf

any ideas of what code I need to change?

Thanks

7:20 am on Dec 26, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 1, 2005
posts:733
votes: 0


Does this help:

[weblogs.asp.net...]

1:05 pm on Dec 26, 2007 (gmt 0)

New User

10+ Year Member

joined:Sept 26, 2004
posts: 20
votes: 0


Hi,

Thanks for this. I got the following error now:

"Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function."

I've changed the code to the following and still get it:


Dim rssStream As Stream = myResponse.GetResponseStream()
Dim rssDoc As New XmlDocument()
rssDoc.Load(rssStream)
Dim nsMgr As XmlNamespaceManager = New XmlNamespaceManager(rssDoc.NameTable)
nsMgr.AddNamespace("rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#")
nsMgr.AddNamespace("rdf:RDF", "http://www.w3.org/1999/02/22-rdf-syntax-ns#")
nsMgr.AddNamespace("dc", "http://purl.org/dc/elements/1.1/")
nsMgr.AddNamespace("rss", "http://purl.org/rss/1.0/")
Dim rssItems As XmlNodeList = rssDoc.SelectNodes("rdf:RDF/item")
Dim rssItems2 As XmlNodeList = rssDoc.SelectNodes("rss/channel/item")

Any advice?

12:24 pm on Dec 27, 2007 (gmt 0)

New User

10+ Year Member

joined:Sept 26, 2004
posts:20
votes: 0


Just to say I found a solution to my problem. I used my ASP3 code that works with del.icio.us to convert their RDF file into RSS, then read the RSS with the ASP.Net code referenced earlier.