Module xmlrat_generate

Serialise XML documents from parsed structures.

Description

Serialise XML documents from parsed structures.

This module is used to serialise an XML document (in the same form which xmlrat_parse would produce) back to binaries.

It supports some variations on the standard XML formatting, and includes a rudimentary pretty-printer / indentation normaliser.

Data Types

options()

options() = #{normalise_whitespace => boolean(), indent => boolean(), indentation_unit => binary(), comments => boolean(), doctypes => boolean(), single_quotes => boolean(), self_closing_tags => boolean(), trim_attributes => boolean()}

Function Index

string/1Serialises a document to a binary string.
string/2Serialises a document to a binary string, with options.

Function Details

string/1

string(Root0::xmlrat:document()) -> binary()

Serialises a document to a binary string.

string/2

string(Root0::xmlrat:document(), Opts::options()) -> binary()

Serialises a document to a binary string, with options.


Generated by EDoc