On Thursday, September 19, 2002, at 12:26  PM, Mark Hortman wrote:
> We are doing development using Jaxen, and while we find it fast, I had 
> some
> thoughts that I would like to share.
> We do a lot of construction of dynamic xpath statements, and a 
> colleague and
> I got to thinking how cool it would be if jaxen supportd a JDBC like
> PreparedStatement concept. This would allow me to say
>
> XPath xpath = new XPath("//girls/molecules[@id=?]");
> xpath.setString(1,"ChemicalX");
>
>
> We want this because the call to XPath constructor seems to be very
> expensive.
>
> Any thoughts on this feature?

Isn't that what variables are for?

XPath xpath = new XPath("//girls/molecules[@id=$value]");

then use the VariableContext when executing the expression.
-pete


-- 
peter royal -> [EMAIL PROTECTED]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to