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: John Cowan <jcowan AT reutershealth.com>
  • To: Elliotte Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>, John Cowan <cowan AT ccil.org>
  • Subject: Re: [XOM-interest] New XPath issue: what to do with non-nodes?
  • Date: Thu, 13 Jan 2005 11:37:15 -0500

Elliotte Harold scripsit:

> That's exactly the ugliness I'm trying to avoid: defining a new type
> wrapper that has to be unwrapped before you can do anything with it.
> XOM's been assiduously avoiding casts since day one. I have little
> desire to reintroduce casting in the guise of function calls.

Fair enough, fair enough. I was simply concerned to demonstrate that
type-safe union returns are feasible in Java, not that they're desirable
in XOM. By all means limit the implementation to returning lists of nodes.

--
If you understand, John Cowan
things are just as they are; http://www.ccil.org/~cowan
if you do not understand, http://www.reutershealth.com
things are just as they are. jcowan AT reutershealth.com




Archive powered by MHonArc 2.6.24.

Top of Page