[jdom-interest] Parents - why do we need them?

Noam Tamim noamt at yahoo.com
Wed Jun 27 15:14:11 PDT 2001

No, I'm not referring to mom and dad. I just wonder - asides from XPath, who
needs to know about someone's parent?
For example, why can't I use the same Attribute again and again?

class SharedAttr extends Attribute {
    SharedAttr(String name, String value) {

    Element getParent() {
        return null;

Using this class everywhere instead Attribute enables me to share the same
object between several Elements.

 - Noam.

More information about the jdom-interest mailing list