X-0.2.0.0: A light-weight XML library

Copyright(c) Galois Inc. 2007
(c) Herbert Valerio Riedel 2019
LicenseBSD-3-Clause AND GPL-3.0-or-later
Safe HaskellNone
LanguageHaskell2010

Text.XML.Output

Description

Output handling for the lightweight XML lib.

Synopsis

Documentation

serializeXML :: [Content] -> Text Source #

Serialize a sequence of XML Content nodes

serializeXMLDoc :: Element -> Text Source #

Serialize XML 1.0 document prefixed by the XML prologue "<?xml version='1.0' ?>"

data SerializeXMLOptions Source #

Options for tweaking XML serialization output

defaultSerializeXMLOptions :: SerializeXMLOptions Source #

Default rendering options

  • Allow empty tags for all non-special elements
  • Don't insert newlines between prolog/epilog nodes