|
|
|
|
|
Description |
This module provides functions to format a tree
structure or SAX stream as UTF-8 encoded XML.
|
|
Synopsis |
|
format :: (GenericXMLString tag, GenericXMLString text) => Node tag text -> ByteString | | format' :: (GenericXMLString tag, GenericXMLString text) => Node tag text -> ByteString | | formatNode :: (GenericXMLString tag, GenericXMLString text) => Node tag text -> ByteString | | formatNode' :: (GenericXMLString tag, GenericXMLString text) => Node tag text -> ByteString | | formatTree :: (GenericXMLString tag, GenericXMLString text) => Node tag text -> ByteString | | formatTree' :: (GenericXMLString tag, GenericXMLString text) => Node tag text -> ByteString | | xmlHeader :: ByteString | | treeToSAX :: Node tag text -> [SAXEvent tag text] | | formatSAX :: (GenericXMLString tag, GenericXMLString text) => [SAXEvent tag text] -> ByteString | | formatSAX' :: (GenericXMLString tag, GenericXMLString text) => [SAXEvent tag text] -> ByteString | | indent :: (GenericXMLString tag, GenericXMLString text) => Int -> Node tag text -> Node tag text | | indent_ :: (GenericXMLString tag, GenericXMLString text) => Int -> Int -> Node tag text -> Node tag text |
|
|
|
High level
|
|
|
Format document with <?xml.. header - lazy variant that returns lazy ByteString.
|
|
|
Format document with <?xml.. header - strict variant that returns strict ByteString.
|
|
|
Format XML node with no header - lazy variant that returns lazy ByteString.
|
|
|
Format XML node with no header - strict variant that returns strict ByteString.
|
|
Deprecated names
|
|
|
DEPRECATED: Renamed to format.
|
|
|
DEPRECATED: Renamed to format'.
|
|
Low level
|
|
|
|
|
Flatten a tree structure into SAX events.
|
|
|
Format SAX events with no header - lazy variant that returns lazy ByteString.
|
|
|
Format SAX events with no header - strict variant that returns strict ByteString.
|
|
Indentation
|
|
|
|
|
|
:: (GenericXMLString tag, GenericXMLString text) | | => Int | Initial indent (spaces)
| -> Int | Number of indentation spaces per nesting level
| -> Node tag text | | -> Node tag text | | Make the output prettier by adding indentation, specifying initial indent.
|
|
|
Produced by Haddock version 2.6.1 |