[Haskell-cafe] Good XML-Enumerator Examples

Michael Xavier nemesisdesign at gmail.com
Mon Jul 11 07:42:40 CEST 2011


Hi Cafe.

I'm writing a library which will be parsing XML data from a web API. I'm
fairly well versed at this point in parsing JSON (aeson being my library of
choice). For XML, I like the API of xml-enumerator over hxt because it
appears to be nice and simple .The problem is that the example in the
documentation isn't really sufficient for me to get a grasp of how to
traverse XML and parse elements with multiple child nodes into a record.

My first question: Am I barking up the wrong tree using xml-enumerator for
anything beyond fairly flat, basic XML? If not, can anyone direct me to some
good code samples using xml-enumerator to parse more complicated data?

If I am indeed barking up the wrong tree, what would you all suggest?

Thanks,
-- 
Michael Xavier
http://www.michaelxavier.net
LinkedIn <http://www.linkedin.com/pub/michael-xavier/13/b02/a26>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110710/c2e86734/attachment.htm>


More information about the Haskell-Cafe mailing list