[Haskell-cafe] XMLParse module
Huong Nguyen
hiperfume at gmail.com
Mon Sep 26 21:13:48 EDT 2005
Hello all,
I am reading XMLParse module
http://www.germane-software.com/repositories/public/StatusReport/trunk/hxml-0.2/XMLParse.hs
But, I am not clear about the purpose of this module and the function of two
functions:
parseInstance = unfoldr (pRun instanceItem) . pcdataMode
parseDTD = foldl (\a b->b a) emptyDTD . unfoldr (pRun dtdItem) . markupMode
parseDocument text =
case pRun prolog (pcdataMode text) of
Just (_, rest) -> unfoldr (pRun instanceItem) rest
Nothing -> [ErrorEvent "Error parsing prolog"] -- can't happen.
If any knows the meaning of those, please let me know.
Thanks a lot.
Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/haskell-cafe/attachments/20050926/bf861c45/attachment.htm
More information about the Haskell-Cafe
mailing list