jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Mistric" <amist...@nemours.org>
Subject Finding out if node is a last child of a parent
Date Wed, 08 Aug 2007 01:50:59 GMT
Hi everyone

This may be an obvious question, but here it is anyway...

- What is the *best* way to find out if a child node is the last child of its parent (based
on certain node type)?
- Is there an API that already does this or would I have to create my own method.
- If I have to create my own method, what would you recommend? Do an Xpath query using last()
or get a count of children and compare last child node with passed in one?


Thanks
Amir
	 
Mime
View raw message