HaXml-1.19.6: Utilities for manipulating XML documentsSource codeContentsIndex
Text.XML.HaXml.Pretty
Contents
Pretty-print a whole document
Just one content
Just one tagged element
Pretty-print just a DTD
The prolog
A content particle description
Description
This is a pretty-printer for turning the internal representation of generic structured XML documents into the Doc type (which can later be rendered using Text.PrettyPrint.HughesPJ.render). Essentially there is one pp function for each type in Text.Xml.HaXml.Types, so you can pretty-print as much or as little of the document as you wish.
Synopsis
document :: Document i -> Doc
content :: Content i -> Doc
element :: Element i -> Doc
doctypedecl :: DocTypeDecl -> Doc
prolog :: Prolog -> Doc
cp :: CP -> Doc
Pretty-print a whole document
document :: Document i -> DocSource
Just one content
content :: Content i -> DocSource
Just one tagged element
element :: Element i -> DocSource
Pretty-print just a DTD
doctypedecl :: DocTypeDecl -> DocSource
The prolog
prolog :: Prolog -> DocSource
A content particle description
cp :: CP -> DocSource
Produced by Haddock version 2.4.1