HaXml-1.23.3: Utilities for manipulating XML documents

Safe HaskellSafe-Inferred

Text.XML.HaXml.ByteStringPP

Contents

Description

This is a fast non-pretty-printer for turning the internal representation of generic structured XML documents into Lazy ByteStrings. Like in Text.Xml.HaXml.Pretty, 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

document :: Document i -> ByteString

Just one content

content :: Content i -> ByteString

Just one tagged element

element :: Element i -> ByteString

Pretty-print just a DTD

doctypedecl :: DocTypeDecl -> ByteString

The prolog

prolog :: Prolog -> ByteString

A content particle description

cp :: CP -> ByteString