Re: [R] using XML package to read RSS

2012-05-16 Thread J Toll
On Wed, May 16, 2012 at 9:02 PM, Duncan Temple Lang wrote: > Hi James. > >  Yes, you need to identify the namespace in the query, e.g. > >  getNodeSet(doc, "//x:entry", c(x = "http://www.w3.org/2005/Atom";)) > > This yeilds 40 matching nodes. > > (getNodeSet() is more convenient to use when you do

Re: [R] using XML package to read RSS

2012-05-16 Thread Duncan Temple Lang
Hi James. Yes, you need to identify the namespace in the query, e.g. getNodeSet(doc, "//x:entry", c(x = "http://www.w3.org/2005/Atom";)) This yeilds 40 matching nodes. (getNodeSet() is more convenient to use when you don't specify a function to apply to the nodes. Also, you don't need xmlRoo

[R] using XML package to read RSS

2012-05-16 Thread J Toll
Hi, I'm trying to use the XML package to read an RSS feed. To get started, I was trying to use this post as an example: http://www.r-bloggers.com/how-to-build-a-dataset-in-r-using-an-rss-feed-or-web-page/ I can replicate the beginning section of the post, but when I try to use another RSS feed