xml in fptools?

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue May 23 15:18:26 EDT 2006


Ashley Yakeley <ashley at semantic.org> writes:

> Would we also want some sort of stream API, similar to SAX?
> 
>    streamXML :: (Monad m) => m Char -> m SAXEvent

HaXml has a module Text.XML.HaXml.SAX with the signature

    saxParse :: String -- ^ The filename
             -> String -- ^ The content of the file
             -> ([SaxElement],Maybe String)
                -- ^ A tuple of the parsed elements and @Nothing@, if no
                --   error occured, or @Just@ @String@ if an error occured.

But again, resolving how different libraries represent the datatypes
SaxElement/SAXEvent is the key question.

Regards,
    Malcolm


More information about the Libraries mailing list