I'm playing around a bit with XPath and nodelist and i want to extract
some info from a RSS feed.
The one that i am testing at can be viewed at http://slashdot.org/index.rss
Ok.. heres the deal:
I load xml via httpwebrequest etc and put it in a XmlDocument.
xmlFeed.Load(xRes.GetResponseStream());
This works fine as i can use this stream with a XmlReader to parse the
document in an ugly way.
Now i try to get all the title elemelts:
nodeList = xmlFeed.DocumentElement.SelectNodes("RDF/item/title/text()");
This should (according to my browsing of xpath and thing and reading for
a few hrs) result in getting the titles ;)
But it don't.
System.Console.WriteLine("Nodes: " + nodeList.Count + "\n");
Outputs: "Nodes: 0"
So what part of my brain isnt working? :)
Anyone spot something horribly wrong?
---
Øyvind Jægtnes