Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] The mysterious LeafNode class

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Laurent Bihanic <laurent.bihanic AT atosorigin.com>
  • To: "Bradley S. Huffman" <hip AT a.cs.okstate.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] The mysterious LeafNode class
  • Date: Fri, 20 Sep 2002 17:14:57 +0200

Bradley S. Huffman wrote:
My reason would be that children have order so previous and next make
sense. Attributes are unordered so previous and next don't. BTW, I did
this with a experimental version of JDOM and to me it just wasn't that
usefull and one method to obtain a List or array of attributes was
good enough.

These are good reasons not to have methods like insert/appendAttribute.
But when you need to navigate the attribute set, I don't see why getNextSibling is worse than Iterator.next() or Attributes.get(int).

Laurent





Archive powered by MHonArc 2.6.24.

Top of Page