On Wed, Jun 23, 2010 at 15:26, Xiaojie Shen
<[email protected]> wrote:
>                   String query = "//sv:no...@sv:name='jcr:root']";

This looks like the system view export XML. However, Xpath queries in
JCR work based on the plain document view mapping. Examples would be

//element(*, nt:file)
to find all file nodes

/jcr:root
to select the root node

For more information, see here
http://wiki.gxdeveloperweb.com/confluence/display/GXDEV/XPath+JCR+Sample+Queries

or the JCR 1.0 spec, section 6.6
http://www.day.com/specs/jcr/1.0/

or search the mailing list archives
http://jackrabbit.markmail.org/

Regards,
Alex

-- 
Alexander Klimetschek
[email protected]

Reply via email to