I am trying to scrape text values from a website. I have been able to parse the url. I am new to XPath in R. So I am not sure how to pull out all the text values that has tag as
'<p class="MsoNormal" align="justify"> text </p>.'
How do I specify the path to the the specific tag and get the text value. This is what I am trying right now.
pizzaraw<-xpathSApply(pizzadoc, "//p[@class='MsoNormal']", xmlValue)
Is this the right approach. R seems not responding to the code.
//pwill give you allpelements (ignoring nesting).//p[1]will return the firstp.//p[1]/text()will return the text contents.//p[1]/@classwill return the contents of theclassattribute, and so on.