[Haskell-cafe] Incremental XML parsing with namespaces?

John Millikin jmillikin at gmail.com
Mon Jun 8 18:05:51 EDT 2009

On Mon, Jun 8, 2009 at 2:51 PM, wren ng thornton<wren at freegeek.org> wrote:
> One issue you'll have to deal with is that since output is delivered
> on-line, by the time a validity (or well-formedness) error can be recognized
> by the parser it'll be "too late". Thus the rest of your code will need to
> be able to back out any global changes they've done when an asynchronous
> error shows up.
> I'm sure you already knew that, but it's worth highlighting. (I recently
> wrote similar code, but in Java. Haven't had the chance/need to do any xml
> hacking in Haskell yet.)
This is acceptable -- I've written a small Python application that
performs incremental parsing on the data stream, and aborting on first
detection of an error is fine.

More information about the Haskell-Cafe mailing list