I am trying to find the value of nodes associated with attributes that are described using single quotes using the R package XML. For example, a node A has an attribute Name="Hello 'World'"
.
I create a character vector
s = "//A[@Name='Hello 'World'']"
and then use xpathApply(top,s,xmlValue) to try to get the information. I get an xpath error because the single quotes end the attribute string prematurely. Does anyone have a suggestion.
Thanks,