Re: [xml-dev] [proposal] XPath API for Java

From
Bill de hÓra <>
To
"K. Ari Krupnikov" <>
Date
2003-09-20T23:23:52Z
ID
<>
Thread
Re: [xml-dev] [proposal] XPath API for Java
K. Ari Krupnikov wrote:

> Expression.getMatchingNodes().item(0).toString is not the same as
> Expression.getStringValue(), the latter, in XPath, gives you a
> concatenation of all descendant text nodes.
> 
> getBooleanValue() would follow XPath hopefully 1.0) rules of casting
> things to booleans, not Java. Same for numbers.
> 
> [...]
> 
> XPath recovers silently from cast errors.

All true and not things I'd considered. I'll need to go away and 
think on it.

Bill de hÓra