Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] New XPath issue: what to do with non-nodes?

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 Abato <mrabato AT earthlink.net>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] New XPath issue: what to do with non-nodes?
  • Date: Thu, 13 Jan 2005 09:02:08 -0500

Michael Abato wrote:


I would certainly include mathematical (numeric/boolean) results in this scenario, and would much prefer type-safe results over string-ification.

Given that XOM is written in Java, type-safe results are simply not an option. The language doesn't support them. There's just no way in Java to return a type-safe list that can potentially contain any or all of node-sets, doubles, booleans, and strings. Restricting the results to nodes is mostly my effort to try to find the right balance between type-safety and functionality. :-(

--
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