Sablon.XML.Serializer (sablon v0.4.4)

Copy Markdown View Source

Turns a Sablon.XML tree back into XML text.

Open Office does not ignore whitespace around tags, so the output is written without any indentation or pretty printing - exactly what the Ruby gem does with to_xml(indent: 0, save_with: 0).

Summary

Functions

Escapes a string for use as a double quoted attribute value.

Escapes a string for use as element content.

Serialises a node and its subtree.

Functions

escape_attr(value)

@spec escape_attr(binary()) :: binary()

Escapes a string for use as a double quoted attribute value.

escape_text(text)

@spec escape_text(binary()) :: binary()

Escapes a string for use as element content.

node_to_xml(node)

@spec node_to_xml(Sablon.XML.Node.t()) :: binary()

Serialises a node and its subtree.