[jdom-interest] isRootElement issue

Kesav Kumar kesavk at voquette.com
Mon Oct 23 11:08:32 PDT 2000

The method isRootElement() returns true/false on the basis of document.  Is
it right way of doing?  I think we need to decide whether the element is
root based on whether the element has any parent.  The reason is If i create
a new Element the document is null, after I added child to the new Element
and query on the child isRootElement it gives true since there is no
document.  I feel we should check whether getParent() is null or not.   

Any suggestions--

Kesav Kumar
Software Engineer
Voquette, Inc.
650 356 3740
mailto:kesavk at voquette.com

More information about the jdom-interest mailing list