Text.XML.Enumerator.Document
- writeFile :: FilePath -> Document -> IO ()
- readFile :: FilePath -> DecodeEntities -> IO (Either SomeException Document)
- readFile_ :: FilePath -> DecodeEntities -> IO Document
- renderLBS :: Document -> ByteString
- parseLBS :: ByteString -> DecodeEntities -> Either SomeException Document
- parseLBS_ :: ByteString -> DecodeEntities -> Document
- toEvents :: Document -> [Event]
- fromEvents :: Monad m => Iteratee Event m Document
- renderBuilder :: MonadIO m => Document -> Enumerator Builder m a
- renderBytes :: MonadIO m => Document -> Enumerator ByteString m a
- renderText :: MonadIO m => Document -> Enumerator Text m a
- data InvalidEventStream = InvalidEventStream String
Non-streaming functions
readFile :: FilePath -> DecodeEntities -> IO (Either SomeException Document)Source
Lazy bytestrings
parseLBS_ :: ByteString -> DecodeEntities -> DocumentSource
Streaming functions
renderBuilder :: MonadIO m => Document -> Enumerator Builder m aSource
renderBytes :: MonadIO m => Document -> Enumerator ByteString m aSource
renderText :: MonadIO m => Document -> Enumerator Text m aSource
Exceptions
data InvalidEventStream Source
Constructors
InvalidEventStream String |