Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Make DOMConverter methods public?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: John Cowan <cowan AT mercury.ccil.org>
  • To: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org, Wolfgang Hoschek <whoschek AT lbl.gov>
  • Subject: Re: [XOM-interest] Make DOMConverter methods public?
  • Date: Sun, 9 Nov 2003 15:19:47 -0500

Elliotte Rusty Harold scripsit:

> What should convert(Attr) do with a DOM object that represents a
> namespace declaration? i.e. where the name is xmlns or xmlns:prefix?
> XOM does not represent such attributes as Attribute objects. Should
> convert throw an exception here or should it return null? Does anyone
> have a strong preference on this one way or the other?

Yes. Throw an exception, for the same reason noted in my last post:
the user is doing the Wrong Thing.

--
Work hard, John Cowan
play hard, jcowan AT reutershealth.com
die young, http://www.reutershealth.com
rot quickly. http://www.ccil.org/~cowan




Archive powered by MHonArc 2.6.24.

Top of Page