libxml-sax-0.6.1: Bindings for the libXML2 SAX interface

Portabilityportable
Maintainerjmillikin@gmail.com

Text.XML.LibXML.SAX

Contents

Description

Bindings for the libXML2 SAX interface

Synopsis

Parser

data Parser m Source

newParserIOSource

Arguments

:: (Text -> IO ())

An error handler, called if parsing fails

-> Maybe Text

An optional filename or URI

-> IO (Parser IO) 

newParserSTSource

Arguments

:: (Text -> ST s ())

An error handler, called if parsing fails

-> Maybe Text

An optional filename or URI

-> ST s (Parser (ST s)) 

Callbacks

data Callback m a Source

A callback should return True to continue parsing, or False to cancel.

setCallback :: Parser m -> Callback m a -> a -> m ()Source

Buffer-based callbacks

Parser input

parseComplete :: Parser m -> m ()Source

Finish parsing any buffered data, and check that the document was closed correctly.