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

Per Norrman pernorrman at telia.com
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:
http://www.servlets.com/archive/servlet/ReadMsg?msgId=448180&listName=jd
om-interest

/pmn




More information about the jdom-interest mailing list