Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Traversing Attributes and Namespace Declarations

xom-interest AT

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Bradley S. Huffman" <hip AT>
  • To: xom-interest AT
  • Cc: hip AT
  • Subject: [XOM-interest] Traversing Attributes and Namespace Declarations
  • Date: Sun, 04 May 2003 10:44:55 -0500

Any thoughts on getting rid of getAttributeCount(), getAttribute(index),
getNamespaceDeclarationCount(), getNamespaceDeclaration(index) in favor
of two methods, getAttributes(), getNamespaceDeclarations(), that return a
iterator. I'm guessing you don't like java iterators cause they're not type
safe, but index operations on attributes and declarations just seems weird.

And dropping from 4 methods to 2, which are only really needed for
serialization, just sounds good. I wouldn't mine doing this in JDOM and
getting rid of the nasty "live" list for Attributes, but it's probably to
late there.


Archive powered by MHonArc 2.6.24.

Top of Page