hexpat-0.11: wrapper for expat, the fast XML parserSource codeContentsIndex
Text.XML.Expat.Format
Contents
High level
Deprecated names
Low level
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
High level
format :: (GenericXMLString tag, GenericXMLString text) => Node tag text -> ByteStringSource
Format document with <?xml.. header - lazy variant that returns lazy ByteString.
format' :: (GenericXMLString tag, GenericXMLString text) => Node tag text -> ByteStringSource
Format document with <?xml.. header - strict variant that returns strict ByteString.
formatNode :: (GenericXMLString tag, GenericXMLString text) => Node tag text -> ByteStringSource
Format XML node with no header - lazy variant that returns lazy ByteString.
formatNode' :: (GenericXMLString tag, GenericXMLString text) => Node tag text -> ByteStringSource
Format XML node with no header - strict variant that returns strict ByteString.
Deprecated names
formatTree :: (GenericXMLString tag, GenericXMLString text) => Node tag text -> ByteStringSource
DEPRECATED: Renamed to format.
formatTree' :: (GenericXMLString tag, GenericXMLString text) => Node tag text -> ByteStringSource
DEPRECATED: Renamed to format'.
Low level
xmlHeader :: ByteStringSource
treeToSAX :: Node tag text -> [SAXEvent tag text]Source
Flatten a tree structure into SAX events.
formatSAX :: (GenericXMLString tag, GenericXMLString text) => [SAXEvent tag text] -> ByteStringSource
Format SAX events with no header - lazy variant that returns lazy ByteString.
formatSAX' :: (GenericXMLString tag, GenericXMLString text) => [SAXEvent tag text] -> ByteStringSource
Format SAX events with no header - strict variant that returns strict ByteString.
Produced by Haddock version 2.6.0