I've just added a new evaluate() method to BaseXPath which will thus be
inherited by all the model specific XPath objects.

public Object evaluate(Object context);

It will return a String, Number or Boolean for XPath expressions which
return primitve data types. e.g. here's an example of all 3

    concat('hello ', /person/name, ' how are you doing?')
    count(/invoice/product)
    @location = 'UK'

Otherwise it will return a List of Nodes. For example this XPath expression
will return a List of nodes...

    //foo

Does this seem OK with everyone?

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to