-- | A streaming XML parser, using a method known as SAX. SAX isn't really a -- standard, but an implementation, so it's just an \"SAX-like\" parser. -- This module allows you parse an XML document without having to evaluate -- it as a whole. This is needed for protocols like jabber, which use xml -- streams for communication. module Text.XML.HaXml.SAX ( SaxElement(..) , saxParse ) where import Text.XML.HaXml.Types import Text.XML.HaXml.Parse import Text.XML.HaXml.Lex import Text.ParserCombinators.Poly.State data SaxElement = SaxDocTypeDecl DocTypeDecl -- ^ A doctype declaration occured(\) | SaxProcessingInstruction ProcessingInstruction -- ^ A processing instruction occured (\) | SaxComment String -- ^ A comment occured (\