Hello,

I am trying to use XML package to download Facebook reviews in the following
way:

require(XML)
mydata.vectors <- character(0)
Qword <- URLencode('#IBM')
QUERY <- paste('SELECT review_id, message, rating from review where message
LIKE %',Qword,'%',sep='')
Facebook_url =  paste('https://api.facebook.com/method/fql.query?query=
',QUERY,sep='')
mydata.xml <- xmlParseDoc(Facebook_url, asText=F)
mydata.vector <- xpathSApply(mydata.xml, '//s:entry/s:title', xmlValue,
namespaces =c('s'='http://www.w3.org/2005/Atom'))

The mydata.xml is NULL therefore no further step can be execute. I am not so
familiar with XML or FQL. Any suggestion will be appreciated. Thank you!

Best regards,
Kenneth

	[[alternative HTML version deleted]]

