[jdom-interest] Retrieve particular node

Laurent Bihanic laurent.bihanic at atosorigin.com
Wed Nov 20 04:34:45 PST 2002


Ramasamy, Kavitha, METRO wrote:

>   I want to add the node to Project Element whose id is 641. what is the 
> optimal way to get the particular element reference.

The easiest way is to use XPath. You can download the Jaxen XPath engine 
(www.jaxen.org) or the latest JDOM from CVS which integrates Jaxen.
The XPath expression to retrieve your Project node would be something like:


More information about the jdom-interest mailing list