xml in fptools?

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue May 23 18:45:00 EDT 2006


Ashley Yakeley <ashley at semantic.org> writes:

> > 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.
> 
> That's not very good for streaming, though, unless you happen to have 
> lazy IO available for your text stream source. It seems to me the whole 
> point of SAX is that you get some XML information even when you don't 
> have all the input yet.

Oh, I always assume lazy I/O.  It is one of the most useful parts of
Haskell, and I rely on it all the time for both interactivity and
avoidance of space problems.

Regards,
    Malcolm


More information about the Libraries mailing list