XML : R-prog extraction of contents from xml

i have used the following code in r to extract contents

but there is always an error...

could anyone point out the mistake?

        fileurl="http://espn.go.com/nfl/team/_/name/bal/baltimore-ravens"        doc=htmlTreeParse(fileurl,useInternal=TRUE)        score=xpathSApply(doc,"//li[@class='score']",xmlValue)        Error:unexpected']' in "scores=xpathSApply(doc=doc,path="//li[@class='score']",fun=xmlValue]"    

Please help..

No comments:

Post a Comment