format package:hexpat
Format document with <?xml.. header - lazy variant that returns
lazy ByteString.
This module provides functions to format a tree structure or SAX
stream as UTF-8 encoded XML.
The formatting functions always outputs only UTF-8, regardless of what
encoding is specified in the document's
XMLDeclaration. If you
want to output a document in another encoding, then make sure the
XMLDeclaration agrees with the final output encoding, then
format the document, and convert from UTF-8 to your desired encoding
using some text conversion library.
The lazy
ByteString representation of the output in generated
with very small chunks, so in some applications you may want to
combine them into larger chunks to get better efficiency.
Format document with <?xml.. header - strict variant that returns
strict ByteString.
Format an XML document - lazy variant that returns lazy ByteString.
Format an XML document - strict variant that returns strict
ByteString.
Format an XML document - generalized variant that returns a generic
list of strict ByteStrings.
Format document with <?xml.. header - generalized variant that
returns a generic list of strict ByteStrings.
Format XML node with no header - lazy variant that returns lazy
ByteString.
Format XML node with no header - strict variant that returns strict
ByteString.
Format XML node with no header - generalized variant that returns a
generic list of strict ByteStrings.
Format SAX events with no header - lazy variant that returns lazy
ByteString.
Format SAX events with no header - strict variant that returns strict
ByteString.
Format SAX events with no header - generalized variant that uses
generic list.