In my PHP script, I\'m using XPATH to search nodes for text. Everything works swimmingly -except - when I search for a word with an apostrophe.
basically my code lo
(which I'm forced to use since this is PHP)
perhaps http://basex.org/api might be worth a look/try. It allows you to use XQuery/XPath and communicates either via REST or sockets. Apart from that I'd recommend salathes solutions.