[Haskell-beginners] xml parsing

Antoine Latter aslatter at gmail.com
Wed Jun 17 23:32:50 EDT 2009


On Wed, Jun 17, 2009 at 1:05 PM, Benedikt Ahrens<benedikt.ahrens at gmx.net> wrote:
> Hello,
>
> I want to write a program which among other should read some xml file.
> The xml tags will mostly be custom ones defined by a dtd.
>
> My question is: which parsing library to use?
>
> On
> http://en.wikibooks.org/wiki/Haskell/XML
> three libraries are mentioned, but a comparison and recommendation of
> which one to choose is missing.
>
> As you might imagine, I would like to use a library which is actively
> maintained? Has any of these libraries developed into a "standard"
> library?
>
> Thanks in advance for your help.
> ben

One option I've used before which isn't on the list is on hackage here:

http://hackage.haskell.org/cgi-bin/hackage-scripts/package/xml

I have a parser for these XML files:

http://cgit.freedesktop.org/xcb/proto/tree/src

in this Haskell package on hackage:

http://hackage.haskell.org/cgi-bin/hackage-scripts/package/xcb-types

I'm no Haskell guru, and the code may not be the best example - but
the library is pretty easy to get started with.

Antoine


More information about the Beginners mailing list