[jdom-interest] Retrieve particular node
Laurent Bihanic
laurent.bihanic at atosorigin.com
Wed Nov 20 04:34:45 PST 2002
Hi,
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:
//Project[@id='641']
Laurent
More information about the jdom-interest
mailing list