jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: Escaping XPATH Queries and more
Date Fri, 19 Oct 2007 13:21:53 GMT
Steven Githens wrote:
> 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

Have a look at org.apache.jackrabbit.util.ISO9075.

Best regards, Julian

Mime
View raw message