Skip to Content.
Sympa Menu

xom-interest - RE: [XOM-interest] Subclassing Element

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: Hallvard Trætteberg <hal AT idi.ntnu.no>, <xom-interest AT lists.ibiblio.org>
  • Cc:
  • Subject: RE: [XOM-interest] Subclassing Element
  • Date: Sat, 13 Sep 2003 18:17:27 -0400

At 10:20 AM +0200 9/11/03, Hallvard Trætteberg wrote:
Hi,

I've done something similar for JDOM and the same problem occurred
there: I think it was setAttribute that created new attributes with a
standard constructor instead of giving a chance for a specific factory
to create it.

I think the only place besides copy() that might be an issue for XOM
is with appendChild(String)/insertChild(String). I don't think there
are any other places where a Node object is likely to be created
without a factory or an explicit constructor call. And subclasses of
Text are probably on the wrong side of 80/20.
--

Elliotte Rusty Harold
elharo AT metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA




Archive powered by MHonArc 2.6.24.

Top of Page