The hexpat package

[Tags:bsd3, library]

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: 2631 us, HEXPAT: low-level parse-no tree: 243 us, lazy-String: 1240 us, lazy-Text: 782 us, strict-String: 1125 us, strict-Text: 770 us

With -threaded: HAXML: 2667 us, HEXPAT: low-level parse-no tree: 472 us, lazy-String: 1453 us, lazy-Text: 1057 us, strict-String: 1342 us, strict-Text: 943 us

Properties

Versions 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.15.1, 0.16, 0.17, 0.18, 0.18.1, 0.18.2, 0.18.3, 0.19, 0.19.1, 0.19.2, 0.19.3, 0.19.4, 0.19.5, 0.19.6, 0.19.7, 0.19.8, 0.19.9, 0.19.10, 0.20.1, 0.20.2, 0.20.3, 0.20.4, 0.20.5, 0.20.6, 0.20.7, 0.20.8, 0.20.9
Dependencies base, binary (>=0.4), bytestring, containers, extensible-exceptions (==0.1.*), haskell98, mtl (>=1.1.0.0), parallel, text (>=0.1), utf8-string (>=0.3.3) [details]
License BSD3
Copyright (c) 2009 Stephen Blackheath <http://blacksapphire.com/antispam/>, (c) 2008 Evan Martin <martine@danga.com>, (c) 2009 Matthew Pocock <matthew.pocock@ncl.ac.uk>
Author Stephen Blackheath (blackh), Evan Martin, Matthew Pocock (drdozer)
Maintainer http://blacksapphire.com/antispam/
Stability beta
Category XML
Home page http://code.haskell.org/hexpat/
Uploaded Wed Mar 18 00:28:17 UTC 2009 by StephenBlackheath
Distributions FreeBSD:0.20.9, LTSHaskell:0.20.9, NixOS:0.20.9
Downloads 28260 total (126 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees