libxml-sax-0.5: Bindings for the libXML2 SAX interfaceSource codeContentsIndex
Text.XML.LibXML.SAX
Portabilityportable
Maintainerjmillikin@gmail.com
Description
Bindings for the libXML2 SAX interface
Synopsis
data Parser s
data ParserCallbacks s = ParserCallbacks {
parsedBeginElement :: Name -> [Attribute] -> ST s ()
parsedEndElement :: Name -> ST s ()
parsedCharacters :: Text -> ST s ()
parsedComment :: Text -> ST s ()
parsedProcessingInstruction :: Instruction -> ST s ()
}
newParser :: ParserCallbacks s -> (Text -> ST s ()) -> Maybe Text -> ST s (Parser s)
parse :: Parser s -> ByteString -> ST s ()
parseComplete :: Parser s -> ST s ()
Documentation
data Parser s Source
data ParserCallbacks s Source
Constructors
ParserCallbacks
parsedBeginElement :: Name -> [Attribute] -> ST s ()
parsedEndElement :: Name -> ST s ()
parsedCharacters :: Text -> ST s ()
parsedComment :: Text -> ST s ()
parsedProcessingInstruction :: Instruction -> ST s ()
newParserSource
:: ParserCallbacks s
-> Text -> ST s ()An error handler, called if parsing fails
-> Maybe TextAn optional filename or URI
-> ST s (Parser s)
parse :: Parser s -> ByteString -> ST s ()Source
Feed some text into the parser. This may be performed multiple times per Parser value, in which case the internal parser state is retained between computations.
parseComplete :: Parser s -> ST s ()Source
Finish parsing any buffered data, and check that the document was closed correctly.
Produced by Haddock version 2.6.1