Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Iterable Elements

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Iterable Elements
  • Date: Tue, 29 May 2007 21:17:19 -0400

Cass Costello wrote:
What are the disadvantages you see, Elliotte?


Incompatibility with everyone still on 1.4 is the big problem.

It would also needlessly duplicate functionality in the API. In XOM there's exactly one way to do it, and Iterator isn't it. Use a NodeList.

Finally, you'd have to figure out what to do about the remove() operation. I don't think there's a good answer for that.

XOM quite deliberately does not expose overly generic collections APIs that don't perfectly fit the problem space. I don't intend to start now.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/




Archive powered by MHonArc 2.6.24.

Top of Page