<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>RE: [jdom-interest] Inheritance for the people!</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>I can see one more reason to have common Node interface</FONT>
<BR><FONT SIZE=2>I would appreciate to have method, something like:</FONT>
</P>
<P> <FONT SIZE=2>Node getNode(String xpath)</FONT>
</P>
<P><FONT SIZE=2>that returns node for given xpath.</FONT>
<BR><FONT SIZE=2>Since XPath can address both elements and attributes (and more ?),</FONT>
<BR><FONT SIZE=2>that seems reasonable to have common Node interface.</FONT>
<BR><FONT SIZE=2>What problem is with Node ?</FONT>
</P>
<P> <FONT SIZE=2>Stm.</FONT>
</P>
<P><FONT SIZE=2>> -----Original Message-----</FONT>
<BR><FONT SIZE=2>> From: Jason Hunter [<A HREF="mailto:jhunter@collab.net">mailto:jhunter@collab.net</A>]</FONT>
<BR><FONT SIZE=2>> Sent: Tuesday, January 09, 2001 7:04 PM</FONT>
<BR><FONT SIZE=2>> To: Lasse Lindgard</FONT>
<BR><FONT SIZE=2>> Cc: jdom-interest@jdom.org</FONT>
<BR><FONT SIZE=2>> Subject: Re: [jdom-interest] Inheritance for the people!</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> > The JDOMElement should be the abstract superclass for</FONT>
<BR><FONT SIZE=2>> > Element, Attribute and CDATA.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> No, an attribute is not an element. And CDATA is not an element</FONT>
<BR><FONT SIZE=2>> either. Many have tinkered with a common Node interface, but all</FONT>
<BR><FONT SIZE=2>> attempts to go that way have had some flaw.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> > But alas that is only possible if there existed a common superclass </FONT>
<BR><FONT SIZE=2>> > for JDOM elements.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> There is a common superclass for JDOM *elements*: Element. You can</FONT>
<BR><FONT SIZE=2>> subclass Element all you like.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> -jh-</FONT>
<BR><FONT SIZE=2>> _______________________________________________</FONT>
<BR><FONT SIZE=2>> To control your jdom-interest membership:</FONT>
<BR><FONT SIZE=2>> <A HREF="http://lists.denveronline.net/mailman/options/jdom-interest/yo" TARGET="_blank">http://lists.denveronline.net/mailman/options/jdom-interest/yo</A></FONT>
<BR><FONT SIZE=2>uraddr@yourhost.com</FONT>
</P>
</BODY>
</HTML>