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: Cormac Blackwell <cormac.blackwell AT gmail.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Iterable Elements
  • Date: Mon, 03 Apr 2006 13:28:39 -0400

Cormac Blackwell wrote:
Hi,
I was wondering if it would be possible to make the Elements class implement
Iterable<Element>. I saw in the archives that you don't want to make
Elements implement List as it would break backward compatibility (and
wouldn't bring that much benefit). I think that implementing Iterable would
be very simple and shouldn't cause any compatiblity problems but would make
Java 5 code which iterates over Elements a lot nicer as the for-each syntax
could be used.


I don't intend to introduce any dependencies on Java 5 this year.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page