[R] trouble for parsing HTML files

Julien Velcin julien.velcin at univ-lyon2.fr
Thu Mar 22 17:20:30 CET 2012


Hi all,

Using the XML package, I'm not able to parse some html webpages. Here  
is my code and the error message:

library("XML")
url <- "http://www.huffingtonpost.com/social/GraniteSkyline?action=fans"
doc <- htmlParse(url)

Error: Namespace prefix ꛀ of attribute (null) is not defined

I've searched a lot on the Internet, but it's really difficult to find  
something useful for R.

Thanks for your help!

Julien


More information about the R-help mailing list