Copyright | (c) Galois Inc. 2007 (c) Herbert Valerio Riedel 2019 |
---|---|
License | BSD-3-Clause AND GPL-3.0-or-later |
Safe Haskell | Safe |
Language | Haskell2010 |
Output handling for the lightweight XML lib.
Synopsis
- serializeXML :: [Content] -> Text
- serializeXMLDoc :: Element -> Text
- serializeXMLRoot :: SerializeXMLOptions -> Root -> Text
- data SerializeXMLOptions = SerializeXMLOptions {}
- defaultSerializeXMLOptions :: SerializeXMLOptions
Documentation
serializeXMLDoc :: Element -> Text Source #
Serialize XML 1.0 document prefixed by the XML prologue
"<?xml version='1.0' ?>
"
serializeXMLRoot :: SerializeXMLOptions -> Root -> Text Source #
Serialize a XML Root
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
- Do not sort attributes