[R] Treatment of xml-stylesheet processing instructions in XML module

2011-04-06 Thread Adam Cooper
Hello again, Another stumble here that is defeating me. I try: a<-readLines(url("http://feeds.feedburner.com/grokin";)) t<-XML::xmlTreeParse(a, ignoreBlanks=TRUE, replaceEntities=FALSE, asText=TRUE) elem<- XML::getNodeSet(XML::xmlRoot(t),"/rss/channel/item")[[1]] And I get: Start tag expected, '<

[R] Curious treatment of entities in xmlTreeParse

2011-04-06 Thread Adam Cooper
Hello! I am not experienced enough to know whether I have found a bug or whether I am just ignorant. I have been trying to use the tm package to read in material from RSS 2.0 feeds, which has required grappling with writing a reader for that flavour of XML. I get an error - "Error : 1: EntityRef: