4 messages in org.apache.jackrabbit.usersRe: Escaping XPATH Queries and more
FromSent OnAttachments
Steven GithensOct 12, 2007 8:58 am 
Julian ReschkeOct 15, 2007 1:45 am 
Steven GithensOct 19, 2007 5:50 am 
Julian ReschkeOct 19, 2007 6:21 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Escaping XPATH Queries and moreActions...
From:Steven Githens (sgit@caret.cam.ac.uk)
Date:Oct 19, 2007 5:50:40 am
List:org.apache.jackrabbit.users

Julian Reschke wrote:

As far as I can tell, the only thing in

2f43f30b-f1cc-4b62-803b-dd37c2be1693

that needs to be escaped would be the leading digit:

_x0032_2f43f30b-f1cc-4b62-803b-dd37c2be1693

(check out <http://people.apache.org/~mreutegg/jcr-query-translator/translator.html>, really useful for testing).

Thanks Julian, that fixed the problem.

Is there a utility method or class somewhere that can be used for escaping these paths? These often come from dynamically generated paths by users, and I am unsure of all the exact rules that need to be parsed and escaped. Or, I would at least like to use some code that has been tested by others. ;)

Thanks, Steve