The hexpat package

[Tags:bsd3, library]

This package provides a general purpose Haskell XML library using Expat to do its parsing (http://expat.sourceforge.net/ - a fast stream-oriented XML parser written in C). It is extensible to any string type, with String, ByteString and Text provided out of the box.

Basic usage: Parsing a tree (Tree), formatting a tree (Format).

Other features: Helpers for processing XML trees (Proc), trees annotated with XML source location (Annotated), XML cursors (Cursor), more intelligent handling of qualified tag names (Qualified), tags qualified with namespaces (Namespaced), SAX-style parse (SAX), and access to the low-level interface in case speed is paramount (IO).

The design goals are speed, speed, speed, interface simplicity and modular design.

For examples, see Text.XML.Expat.Tree module. For benchmarks, http://haskell.org/haskellwiki/Hexpat/

Credits to Iavor Diatchki and the xml (XML.Light) package for Proc and Cursor.

INSTALLATION: Unix install requires an OS package called something like libexpat-dev. On MacOSX, expat comes with Apple's optional X11 package, or you can install it from source. To install on Windows, first install the Windows binary that's available from http://expat.sourceforge.net/, then type (assuming you're using v2.0.1):

cabal install hexpat --extra-lib-dirs=C:\Program Files\Expat 2.0.1\Bin --extra-include-dirs=C:\Program Files\Expat 2.0.1\Source\Lib

Ensure libexpat.dll can be found in your system PATH (or copy it into your executable's directory).

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 (>=3 && <5), bytestring, containers, extensible-exceptions (==0.1.*), List (>=0.2), mtl, parallel, text (>=0.5), utf8-string (>=0.3.3) [details]
License BSD3
Copyright (c) 2009 Doug Beardsley <mightybyte@gmail.com>, (c) 2009-2010 Stephen Blackheath <http://blacksapphire.com/antispam/>, (c) 2009 Gregory Collins, (c) 2008 Evan Martin <martine@danga.com>, (c) 2009 Matthew Pocock <matthew.pocock@ncl.ac.uk>, (c) 2007-2009 Galois Inc.
Author Doug Beardsley, Stephen Blackheath (blackh), Gregory Collins, Evan Martin, Matthew Pocock (drdozer)
Maintainer http://blacksapphire.com/antispam/
Stability beta
Category XML
Home page http://haskell.org/haskellwiki/Hexpat/
Source repository head: darcs get http://code.haskell.org/hexpat/
Uploaded Sat May 1 15:27:55 UTC 2010 by StephenBlackheath
Distributions FreeBSD:0.20.9, NixOS:0.20.9
Downloads 28759 total (144 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