Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Non-blocking XML Parsing

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Norman Elton <normelton AT gmail.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Non-blocking XML Parsing
  • Date: Mon, 12 Oct 2009 13:08:57 -0400

I've got an XML-based network protocol. Each request constitutes a
"chunk" of this document. So the document is not complete until the
connection is torn down. Traditional XML parsers choke in this
situation, in that they cannot parse an incomplete document, or block
waiting for the InputStream to send more data.

I'm using a non-blocking network framework (Netty), so the notion of
blocking until more data arrives isn't going to fly.

I see that XOM supports the notion of accessing a document while it is
still being built. I'm a bit fuzzy on how that works, but it might
solve my problem.

Is there a way to use XOM to parse a document in a non-blocking fashion?

Thanks!

Norman




Archive powered by MHonArc 2.6.24.

Top of Page