@hackage hexpat0.4

wrapper for expat, the fast XML parser

Expat (http://expat.sourceforge.net/) is a stream-oriented XML parser written in C.

This package provides a Haskell binding for Expat, with a choice of tree or SAX-style representation, and it includes an XML formatter. It is extensible to any string type, with String, ByteString and Text provided out of the box.

The emphasis is on speed and simplicity. If you want more complete and powerful XML libraries, consider using HaXml or HXT instead.

Note that hexpat has undergone a major API change since 0.3.x.

Benchmark results on ghc 6.10.1 against HaXml for parsing a 4K xml file with non-threading runtime: HAXML: 2683 us, HEXPAT: low-level parse-no tree: 243 us, lazy-String: 1340 us, lazy-Text: 814 us, strict-String: 1194 us, strict-Text: 732 us

With -threaded: HAXML: 2691 us, HEXPAT: low-level parse-no tree: 472 us, lazy-String: 1575 us, lazy-Text: 1068 us, strict-String: 1396 us, strict-Text: 964 us