The hexpat package
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
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 |
|---|---|
| Dependencies | base, binary (≥0.4), bytestring, haskell98, mtl (≥1.1.0.0), parallel, text (≥0.1), utf8-string (≥0.3.3) |
| 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/ |
| Upload date | Wed Mar 11 12:22:25 UTC 2009 |
| Uploaded by | StephenBlackheath |
| Built on | ghc-6.10 |
| Build failure | ghc-6.12 (log) |
| Distributions | NixOS: 0.20.3, FreeBSD: 0.20.3 |
Modules
Downloads
- hexpat-0.4.tar.gz (Cabal source package)
- package description (included in the package)