I have been working on an application that uses both jdom and jaxen.

Here is and example of my problem?

String str = "Johnny's Dinner";
XPath xpathArtist = new XPath("//a[@n='" + str + "']");

I read somewhere that replacing ' with "'" or " with '"'.

Is this the best way to do this?
Is there support built into jaxen to clean up string prior to being used in
XPath?

Best Regards,

Jason Long
JML Internet Enterprises - www.jmlie.com
BS Physics, MS Chemical Engineering


_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to