ContentsIndex
Org.Org.Semantic.HBase.Encoding.XML.Event
Synopsis
data XMLEvent
= ExceptionEvent Exception
| StartElementEvent XMLName [XMLAttribute]
| EndElementEvent XMLName
| CharactersEvent String
| IgnorableWhitespaceEvent String
| ProcessingInstructionEvent String String
| SkippedEntityEvent String
| StartPrefixMappingEvent String String
| EndPrefixMappingEvent String
data XMLParserError
= XMLUnmatchedTagsError
| XMLNoParseError
class StoppableMonadOrParser XMLParserError Char m => XMLParser m where
addEntity :: String -> String -> m ()
lookupEntity :: String -> m String
documentParser :: XMLParser m => (XMLEvent -> m a) -> m [a]
encodeXML :: MonadException Exception m => [XMLEvent] -> m String
parseXMLDocumentEvents :: (Monad m, MonadThrow XMLParserError m) => m (Maybe Char) -> (XMLEvent -> m a) -> m (Maybe [a])
xmlDocumentEvents :: Monad m => m (Maybe Char) -> (XMLEvent -> m a) -> ExceptionMonad m XMLParserError [a]
Documentation
data XMLEvent
note: StartDocument and EndDocument omitted.
Constructors
ExceptionEvent Exception
StartElementEvent XMLName [XMLAttribute]
EndElementEvent XMLName
CharactersEvent String
IgnorableWhitespaceEvent String
ProcessingInstructionEvent String String
SkippedEntityEvent String
StartPrefixMappingEvent String String
EndPrefixMappingEvent String
data XMLParserError
Constructors
XMLUnmatchedTagsError
XMLNoParseError
Instances
Show XMLParserError
class StoppableMonadOrParser XMLParserError Char m => XMLParser m where
Methods
addEntity :: String -> String -> m ()
lookupEntity :: String -> m String
Instances
StoppableMonadOrParser XMLParserError Char m => XMLParser m
documentParser :: XMLParser m => (XMLEvent -> m a) -> m [a]
encodeXML :: MonadException Exception m => [XMLEvent] -> m String
parseXMLDocumentEvents :: (Monad m, MonadThrow XMLParserError m) => m (Maybe Char) -> (XMLEvent -> m a) -> m (Maybe [a])
xmlDocumentEvents :: Monad m => m (Maybe Char) -> (XMLEvent -> m a) -> ExceptionMonad m XMLParserError [a]
Produced by Haddock version 0.6