Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Iterable Elements

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Cormac Blackwell" <cormac.blackwell AT gmail.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Iterable Elements
  • Date: Mon, 3 Apr 2006 16:49:37 +0100

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.

Cormac Blackwell




Archive powered by MHonArc 2.6.24.

Top of Page