473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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
xd.Load(xr)

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) & ""

next

------------------------------------
my error

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



Thanks for any help or insight.

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

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

Similar topics

2
by: Michael Hatmaker | last post by:
I have begun experimenting with web services, and I created some simple web services in C# and was able to install them with IIS and create an equally simple C# client to consume them. My next...
0
by: pranoliver | last post by:
Hi, How can I consume a Web Service that returns a DATASET from classic ASP. I know how to consume the Web Service when it returns just a variable using SOAP Toolkit 3.0. Thanks In Advance.
2
by: Abeslom via .NET 247 | last post by:
Hi, I am trying to create a simple .NET http-Get client that willconsume a java webservice on a mainframe. If I type the URL forthe webservice in the Browser, the service works and I get theexpected...
2
by: KoolistOne | last post by:
I have a template that I would like to include a namespace in but I won't be using that referenced namespace til a few months from now. In the mean time, will that referenced, but not used/called...
4
by: John Bailo | last post by:
I wrote a .NET/c# webservice which I then needed to consume from java server pages. The simplest ( and best ) solution I found, was some code to open a socket, and send a SOAP message directly...
1
by: Mike | last post by:
I need to consume a wsdl file using C#. The web service was not created in ..NET but I need to consume it. Can anyone point me to an example that is consuming a wsdl using C# for a windows...
3
by: Mike | last post by:
I want to create a ticker type app that consume RSS feeds from several sites, where can i find some informaton or code snippets now how to consume the RSS feeds and display the data?
2
by: Rubén Valenzuela T. | last post by:
Hi, I'm wondering if there is a way of consuming webservices from any technology (.NET, JAVA based) from and ASP based application - not ASP.NET. If so please direct me on the steps to follow or...
3
by: Eran AMiel | last post by:
hello I need to consume a .net web service from vb 6 application. Any code samples or sources where i can find material about it Would be great, -- Thank For The Help Eran
5
by: David Lozzi | last post by:
Howdy, I wrote a web service in .Net for my customer. My customer has another vendor who now has to consume it but they are not using Visual Studio. Most of their pages are jsp, and they said...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.