jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "BOWLER Paul" <Paul.Bow...@alcatel-lucent.com>
Subject Query for Nodes from a given Path
Date Tue, 07 Jul 2009 10:36:20 GMT

I need to query a subtree for specific nodes, but do not know the syntax
for this.

Currently I have:

def query = qm.createQuery("//pcf:Color", Query.XPATH)
return query.execute()

This returns ALL pcf:Color nodes in the repository, but I'd like to
limit the search down a specific path (or from a specific node).

Any ideas how I could do this?



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