Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Making XOM work with the Java 8 Stream API

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT ibiblio.org>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Making XOM work with the Java 8 Stream API
  • Date: Thu, 12 Apr 2018 16:35:59 -0700

I've thought about making Nodes implement Iterable. Might be useful in
some cases.

Streamable is a bigger chasm to cross.

Before either of these are considered, I really do need to push out a
bug fix release to roll up some patches from the last few years.




On Thu, Apr 12, 2018 at 12:56 AM, Pelle Poluha <pelle.poluha AT consid.se> wrote:
> I've been using XOM almost 10 years now and it has served me well. Lots of
> things have happened in the Java world during that time, most notably Java
> 8 and the Stream API. Now, traversing a query result using an ordinary for
> loop is clumsy in comparison. So I'm thinking about how to make XOM work
> with streams. Perhaps I could create a wrapper taking Nodes and making them
> both iterable and streamable? Would this be a good idea in your opinion?
> _______________________________________________
> XOM-interest mailing list
> XOM-interest AT lists.ibiblio.org
> https://lists.ibiblio.org/mailman/listinfo/xom-interest



--
Elliotte Rusty Harold
elharo AT ibiblio.org




Archive powered by MHonArc 2.6.24.

Top of Page