From users-return-5231-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Fri Oct 19 12:54:44 2007 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 34857 invoked from network); 19 Oct 2007 12:54:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Oct 2007 12:54:44 -0000 Received: (qmail 11513 invoked by uid 500); 19 Oct 2007 12:54:30 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 11494 invoked by uid 500); 19 Oct 2007 12:54:30 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 11485 invoked by uid 99); 19 Oct 2007 12:54:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2007 05:54:30 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [131.111.21.16] (HELO caret.cam.ac.uk) (131.111.21.16) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2007 12:54:34 +0000 Received: from insidepixpool.dmz.caret.local ([192.168.101.56] helo=[10.0.0.80]) by caret.cam.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1IirJf-0008Df-JR for users@jackrabbit.apache.org; Fri, 19 Oct 2007 13:51:03 +0100 Message-ID: <4718A837.2080105@caret.cam.ac.uk> Date: Fri, 19 Oct 2007 13:51:03 +0100 From: Steven Githens User-Agent: Thunderbird 1.5.0.13 (X11/20070824) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Escaping XPATH Queries and more References: <470F99B1.3010808@caret.cam.ac.uk> <471328BE.8030504@gmx.de> In-Reply-To: <471328BE.8030504@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 > , > 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