jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nch <underscore_...@yahoo.com>
Subject xpath
Date Thu, 12 Nov 2009 16:38:33 GMT
Hi, there.

I'm new to Jackrabbit and I'm having some problems to understand how xpath works here.
If I have the following hierarchy:
/test (jcr:folder)
+ file1.txt (jcr:file)
+ file2.txt (jcr:file)

then I can retrieve all nodes in /test by means of the following xpath expression "/jcr:root/test/*"

But, if I have the following:
/test (jcr:directory)

+ file1.txt

+ file2.txt

+ newfolder (jcr:folder)

then, the previous xpath expression does not yield any nodes.
Any explanations for this?

Kind regards.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message