[Haskell-cafe] Capturing the parent element as I parse XML using parsec

C K Kashyap ckkashyap at gmail.com
Sun Jul 29 08:21:47 CEST 2012


Hi,

With the help of the cafe I've been able to write up the xml parser using
parsec -
https://github.com/ckkashyap/really-simple-xml-parser/blob/master/RSXP.hs

I am struggling with an idea though - How can I capture the parent element
of each element as I parse? Is it possible or would I have to do a second
pass to do the fixup?

Regards,
Kashyap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120729/bafe84de/attachment.htm>


More information about the Haskell-Cafe mailing list