SV: [jdom-interest] Inheritance for the people!

Lasse Lindgard lasse at
Wed Jan 10 00:11:01 PST 2001

Maybe JDOMElement was a bad name.

I don't really care if attributes, cdata are not all elements. To me they
are all bits and pieces that i need to build XML-documents. So a common Node
interface (if you like) would just save me a lot of trouble.

What has been wrong with the attempts to make a common Node interface so far


-----Oprindelig meddelelse-----
Fra: Jason Hunter [mailto:jhunter at]
Sendt: 9. januar 2001 19:04
Til: Lasse Lindgard
Cc: jdom-interest at
Emne: Re: [jdom-interest] Inheritance for the people!

> The JDOMElement should be the abstract superclass for
> Element, Attribute and CDATA.

No, an attribute is not an element.  And CDATA is not an element
either.  Many have tinkered with a common Node interface, but all
attempts to go that way have had some flaw.

> But alas that is only possible if there existed a common superclass
> for JDOM elements.

There is a common superclass for JDOM *elements*:  Element.  You can
subclass Element all you like.


More information about the jdom-interest mailing list