hexpat: wrapper for expat, the fast XML parser

[ bsd3, library, xml ] [ Propose Tags ]

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 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, 0.20.10, 0.20.11, 0.20.12, 0.20.13
Dependencies base, binary (>=0.4), bytestring, containers, extensible-exceptions (>=0.1 && <0.2), haskell98, mtl (>=1.1.0.0), parallel, text (>=0.1), utf8-string (>=0.3.3) [details]
License BSD-3-Clause
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/
Category XML
Home page http://code.haskell.org/hexpat/
Uploaded by StephenBlackheath at 2009-03-18T00:28:17Z
Distributions FreeBSD:0.20.9, LTSHaskell:0.20.13, NixOS:0.20.13, Stackage:0.20.13
Reverse Dependencies 27 direct, 258 indirect [details]
Downloads 60986 total (152 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]