I dont know why my answer doesn't reached the list the following is my
last post;
------------------------------------------------------
See this article:
www..ibm.com/developerworks/java/library/j-jcr/
and consider "Listing 9. Browsing a content repository" in it.
It's simple just like traversing a tree.
As mentioned in the article above you can use Xpath to search for a node.