[Haskell-beginners] Laziness and XML parsing
seanhess at gmail.com
Tue Nov 8 14:38:58 CET 2011
I cannot seem to find a working example of xml-enumerator. It doesn't run: the names seem to have changed for some things, and I'm too much of a beginner to figure it out easily.
On Nov 7, 2011, at 7:59 PM, Felipe Almeida Lessa wrote:
> On Tue, Nov 8, 2011 at 12:45 AM, Sean Hess <seanhess at gmail.com> wrote:
>> I want to parse a large xml file (2GB), without putting the whole thing into
>> memory. It's pretty simple with a sax parser in most languages, you just
>> stream bytes to the sax parser, and wait for sax events.
> I recommend you taking a look at xml-enumerator  and
> libxml-enumerator . They are the SAX parsers you know from the
> imperative world but much easier to write =). In particular, you
> don't need to rely on lazyness.
>  http://hackage.haskell.org/package/xml-enumerator
>  http://hackage.haskell.org/package/libxml-enumerator
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners