[jdom-interest] Ideas for API changes

Noam Tamim noamt at yahoo.com
Sun Apr 29 14:50:45 PDT 2001

> At 3:43 PM -0700 4/28/01, Jason Hunter wrote:

> However, I do think they're a couple of methods that would be useful 
> in the Node interface. At a minimum I'd say getParent() and 
> getDocument(). I think we might also want to look at (though perhaps 
> in 1.1) a getValue() method which returns the XPath value of a Node. 
> This is a very useful thing to have even if you're not using XPath, 
> and it is genuinely applicable to all node types, (as opposed to DOM 
> nodes, some of which have null values.) I also think we could 
> plausibly put hasChildren() and getChildren() in the Node interface.

I thought about those methods when I wrote my original message, but
decided to drop them. What are the children of Attributes, Comments, PI?
Who's the parent of a Document?

 - Noam.

More information about the jdom-interest mailing list