Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
DOM-based parsing and rendering.
This module uses the datatypes from Data.XML.Types, with the String
-based
function being the “default” parsing one and the Text.Lazy
-based one being
the “default” rendering one, writeFile
and readFile
being convenience
functions. It uses more or less the same naming conventions as xml-conduit
- readFile :: FilePath -> IO (Either String Document)
- parseString :: String -> Either String Document
- parseText :: Text -> Either String Document
- parseLazyText :: Text -> Either String Document
- writeFile :: FilePath -> Document -> IO ()
- renderString :: Document -> String
- renderText :: Document -> Text
- renderLazyText :: Document -> Text
Parsing
String
Text
Rendering
String
renderString :: Document -> String Source #
Text
renderText :: Document -> Text Source #
renderLazyText :: Document -> Text Source #