I think the important thing is this:
Exception in thread "JavaFX Application Thread" org.apache.commons.jxpath.JXPathInvalidSyntaxException: Invalid XPath: 'drive-configs/drive-config[@drive=\'/Volumes/Andrew\'s Macbook HD\']'. Syntax error after: 'drive-configs/drive-config[@drive=\''
at org.apache.commons.jxpath.ri.Parser.parseExpression(Parser.java:63)
Because the yellow single quotes are intended to be part of the XPATH-Query and should not be escaped.
Otherwise quotes are missing and this is a syntax error.
I guess, you replace single quotes in the whole query instead of the values only.
|