[jdom-interest] Last call: getChild/getChildren versus getChildElement/getChildElements

Elliotte Rusty Harold elharo at metalab.unc.edu
Fri Feb 6 13:14:17 PST 2004

At 2:26 PM -0600 2/6/04, Bradley S. Huffman wrote:

>But one is just a very restrict case of the other, so why have 2 ways of
>doing the same thing with two different interfaces when one consistent
>inferace is all that's really need?

The same reason you have any other convenience method: because it 
makes common operations a lot simpler. Plus in XOM, 
getChildElements() is a lot faster than getChildren() and then 
looking for the elements. I don't know if that's treu in JDOM or not.

   Elliotte Rusty Harold
   elharo at metalab.unc.edu
   Effective XML (Addison-Wesley, 2003)

More information about the jdom-interest mailing list