I have an XPath query that looks like this, with both single and double quotes. How do I escape the apostrophe properly so that the query works?
I tried:
rating<- getNodeSet(doc1,"//*[(@id = "taplc_location_reviews_list_apd_0")]//*[contains(concat( " ", @class, " " ), concat( " ", "ui_bubble_rating", " " ))]"
How can I use this Xpath so that I'm able to scrape rating from Tripadvisor?
It's giving an error:
Error: unexpected symbol in "rating<- getNodeSet(doc1,"//*[(@id = "taplc_location_reviews_list_apd_0"