Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Faith Greenwood
January 24, 2010, 5:23 pm
rate this thread
I am trying to escape single and double quotation marks in an XPATH
expression. Failing to escape the quotes produces an "Invalid
Here's an example:
However, this also produces the "Invalid predicate" error. I've tried
what the xpath language suggests by replacing a ' with '
This time, though, the search produces no results. (I know the
expression itself is valid as it works on $values that contain no
single or double quotes).
What is the correct way to escape quotation characters for XPath
expressions in perl?
- » FAQ 5.31 How can I tell whether there's a character waiting on a filehandle?
- — Previous thread in » PERL Discussions