469,295 Members | 1,943 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,295 developers. It's quick & easy.

consume rss with RDF

I'm trying to consume a feed from craigslist.org http://sfbay.craigslist.org/rvs/index.rss

my code gets hungup on the <item rdf:about=
-------------- my code ------------------------

'/// Grab Nodes ///'
Dim xd As System.XML.XmlDocument = New System.XML.XmlDocument

Dim nt As NameTable = New NameTable()
Dim nsManager As XmlNamespaceManager = New XmlNamespaceManager(nt)

nsManager.AddNamespace("rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#")
nsManager.AddNamespace("item", "http://www.w3.org/1999/02/22-rdf-syntax-ns#")

' Dim xnl As System.XML.XmlNode = xd.DocumentElement.SelectSingleNode("item")

Dim xnl As System.XML.XmlNode = xd.DocumentElement.SelectSingleNode("item:rdf:abou t/title/link/description/pubDate", nsManager)
' Dim xnl As System.XML.XmlNode = xd.DocumentElement.SelectSingleNode("//item:item/item:rdf:about/item:title/item:link/item:description/item:pubDate", nsManager)
'Dim xnl As System.XML.XmlNodeList = xd.DocumentElement.SelectNodes("//item")

dim thisnode as System.Xml.XmlElement

'/// Walk Each node taking its properties ///'
dim c as integer=0

for each thisnode in xnl

'/// Get Each Node (nodename, object) ///'
headline=getnode("title",thisnode) & ""
articleurl=getnode("link",thisnode) & ""
summary=getnode("description",thisnode) & ""
headlinedate=getnode("pubDate",thisnode) & ""


my error

'item:rdf:about/title/link/description/pubDate' has an invalid token.

Thanks for any help or insight.

Feb 10 '07 #1
1 1452
839 Expert 512MB
Did you succeed to solve the problem ?
If yes, please let me know, in order to close the thread.
Mar 21 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Abeslom via .NET 247 | last post: by
1 post views Thread by Mike | last post: by
3 posts views Thread by Mike | last post: by
2 posts views Thread by Rubén Valenzuela T. | last post: by
3 posts views Thread by Eran AMiel | last post: by
5 posts views Thread by David Lozzi | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.