Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XOM 1.1: XPath

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Michael Kay <mike AT saxonica.com>
  • Cc: 'xom-interest' <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] XOM 1.1: XPath
  • Date: Fri, 07 Jan 2005 07:16:02 -0500

Michael Kay wrote:


Other APIs for XPath have provided one method to return a single node,
another method to return a set of nodes.

I was wondering when someone was going to notice that. :-) I think robust processing requires not making too many assumptions about what you'll get from the XPath expression. Such assumptions include:

1. An XPath expression returns at least one node.
2. An XPath expression returns exactly one node.

I do not intend to have a function such as selectSingleNode in the API. All XPath expressions will return lists.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page