
8 Jun
2009
8 Jun
'09
10:05 p.m.
On Mon, Jun 8, 2009 at 2:51 PM, wren ng thornton
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.