-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Bindings for the libXML2 SAX interface -- -- Incrementally convert text to lists of XML events @package libxml-sax @version 0.3 module Text.XML.LibXML.SAX -- | An opaque reference to a libXML SAX parser. data Parser data Event BeginElement :: QName -> [Attribute] -> Event EndElement :: QName -> Event Characters :: String -> Event Comment :: String -> Event -- | Target, Data ProcessingInstruction :: String -> String -> Event ParseError :: String -> Event data Attribute Attribute :: QName -> String -> Attribute attributeName :: Attribute -> QName attributeValue :: Attribute -> String data QName QName :: String -> String -> String -> QName qnameNamespace :: QName -> String qnamePrefix :: QName -> String qnameLocalName :: QName -> String -- | Construct a new, empty parser. mkParser :: 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 -> String -> Bool -> IO [Event] instance Show QName instance Eq QName instance Show Attribute instance Eq Attribute instance Show Event instance Eq Event instance Storable SAXHandler