HaXml-1.25.6: Utilities for manipulating XML documents
Safe HaskellSafe-Inferred
LanguageHaskell98

Text.XML.HaXml.Pretty

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

Pretty-print a whole document

Just one content

content :: Content i -> Doc Source #

Just one tagged element

element :: Element i -> Doc Source #

Pretty-print just a DTD

The prolog

prolog :: Prolog -> Doc Source #

A content particle description

cp :: CP -> Doc Source #