xml-extractors: Simple wrapper over xml to extract data from parsed xml

[ bsd3, library, xml ] [ Propose Tags ]

This is a library to simplify extraction of data from parsed xml.

See the Text.XML.Light.Extractors module for an example.


The xml package provides functions to parse and get information from xml data. It will parse an xml string into a generic tree representation. Extracting information from such a tree while keeping track of location to handle errors is tricky. This library helps with that.

If there is an error during extraction (expected information is absent or wrong), it will return an error value with position information.

Some limitations

[Skip to Readme]
Versions [faq],,,,,
Dependencies base (>=4.6 && <4.8), mtl (==2.1.*), safe (==0.3.*), transformers (==0.3.*), xml (==1.3.*) [details]
License BSD-3-Clause
Author Johan Holmquist
Maintainer holmisen@gmail.com
Category XML
Home page https://github.com/holmisen/xml-extractors
Uploaded by holmisen at Sat Dec 20 21:42:39 UTC 2014
Distributions NixOS:
Downloads 1894 total (61 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for xml-extractors-

[back to package description]


Simple wrapper over xml to extract data from parsed xml.

When parsing xml strings with XML.Light you get a list of Content. Then you can use functions from Text.XML.Light.Proc to extract data from that. It is however kind of tricky to deal with the potential errors -- we have a parsing problem again.

Instead of Text.XML.Light.Proc one can use this library. It simplifies the process of extracting data from Content while dealing with errors.