[jdom-interest] Inheritance for the people!

Mores Stanislav stm at prosoft.sk
Tue Jan 9 23:27:13 PST 2001

I can see one more reason to have common Node interface
I would appreciate to have method, something like:

	Node getNode(String xpath)

that returns node for given xpath.
Since XPath can address both elements and attributes (and more ?),
that seems reasonable to have common Node interface.
What problem is with Node ?


> -----Original Message-----
> From: Jason Hunter [mailto:jhunter at collab.net]
> Sent: Tuesday, January 09, 2001 7:04 PM
> To: Lasse Lindgard
> Cc: jdom-interest at jdom.org
> Subject: 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.
> -jh-
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20010110/c5339507/attachment.htm

More information about the jdom-interest mailing list