hxt-9.1.6: A collection of tools for processing XML with Haskell.

Portability | portable
Stability | stable
Maintainer | Uwe Schmidt (uwe@fh-wedel.de)

Text.XML.HXT.DOM.ShowXml

Description

XML tree conversion to external string representation

Synopsis

- xshow :: XmlTrees -> String
- xshowBlob :: XmlTrees -> Blob
- xshow' :: (Char -> StringFct) -> (Char -> StringFct) -> (Char -> StringFct) -> XmlTrees -> Blob
- xshow'' :: (Char -> StringFct) -> (Char -> StringFct) -> XmlTrees -> String

# Documentation

xshow :: XmlTrees -> String

convert a list of trees into a string

see also : `xmlTreesToText` for filter version, `Text.XML.HXT.Parser.XmlParsec.xread` for the inverse operation

xshowBlob :: XmlTrees -> Blob

convert an XML tree into a binary large object (a bytestring)

xshow' :: (Char -> StringFct) -> (Char -> StringFct) -> (Char -> StringFct) -> XmlTrees -> Blob

convert a list of trees into a blob.

Apply a quoting function for XML quoting of content, a 2. quoting funtion for attribute values and an encoding function after tree conversion

xshow'' :: (Char -> StringFct) -> (Char -> StringFct) -> XmlTrees -> String