W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

Re: Document Object Model (DOM) Level 3 XPath Specification

From: Philippe Le Hegaret <plh@w3.org>
Date: Thu, 21 Jun 2001 12:18:10 -0400
Message-ID: <3B321E42.3F380510@w3.org>
To: WWW DOM <www-dom@w3.org>
[for the record]

<anonymous> wrote:
> looks good.  My initial comments are this:
> 
> I'd like to see a XPathEvaluator interface expose only one method
> instead of the evaluatAs* methods.  It should be called compileXPath and
> should return an XPath object. so that you can turn an XPath statement
> into an XPath pre-evaluated, and reusable object.  That XPath object
> should expose the evaluation methods (minus the XPath string of course)
> and an additional method for determining the result type of the
> expression.
> 
> I'd like to see this XPath object expose a method that tells you what
> kind of result will be returned (Nodeset, Boolean, String, Number...),
> so that when generic query engine is evaluating the expression, it knows
> which method to actually call.  In the current interfaces, it seems as
> though the programmer has to be a mind reader ahead of time in order to
> determine which evaluation method to call.
Received on Thursday, 21 June 2001 12:18:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:48 GMT