Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Xstream/Stax integration

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: Wolfgang Hoschek <whoschek AT lbl.gov>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Xstream/Stax integration
  • Date: Tue, 23 Aug 2005 17:38:48 -0400

Wolfgang Hoschek wrote:

For example, it brings up the question of the public XOM Builder API. Should the Stax builder be a) standalone, or b) a subclass, or c) implement some currently non-existing common interface? In case b) some methods in the XOM Builder might need to be made protected rather than private.

I strongly suspect that it would need to be its own class completely independent of Builder. While you might be able to share the same interface as Builder, virtually none of the implementation would be reusable. However it should be possible to reuse NodeFactory. And of course as you've pointed out in the past you'd take a performance hit from double verifying that Builder can avoid. But I suppose you could put the class in the nu.xom package to avoid this, at least for experimental purposes.


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