-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Bindings for the libXML2 SAX interface -- -- Bindings for the libXML2 SAX interface @package libxml-sax @version 0.4 module Text.XML.LibXML.SAX -- | An opaque reference to a libXML SAX parser. data Parser data Event BeginElement :: Name -> [Attribute] -> Event EndElement :: Name -> Event Characters :: Text -> Event Comment :: Text -> Event ProcessingInstruction :: Instruction -> Event data Error Error :: Text -> Error -- | Construct a new, empty parser. newParser :: IO Parser -- | 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. -- -- If the third parameter is True, the parser assumes that this is -- the last input and checks that the document was closed correctly. parse :: Parser -> ByteString -> Bool -> IO (FailableList Error Event) -- | Convert a list of events to a single Element. If the events do -- not contain at least one valid element, Nothing will be -- returned instead. eventsToElement :: [Event] -> Maybe Element instance Show Error instance Eq Error instance Show Event instance Eq Event instance Storable SAXHandler