SV: [jdom-interest] questions on using XPath.newInstance() and expr

Per Norrman pernorrman at
Fri Jan 30 04:27:21 PST 2004

> Q1:Is it possible to only create one Instance of XPath and 
> just use different expressions when navigating the xml 
> document. That is:

No, but you can do the opposite, i.e. create one XPath instance for
each expression and use different contexts (nodes).

> Q2: How can I add a java String variable to an XPath 
> expression? Example:

Previously answered:


More information about the jdom-interest mailing list