View Source Saxy.XML (Saxy v1.6.0)
Helper functions for building XML elements.
Summary
Functions
Builds CDATA in simple form.
Builds characters in simple form.
Builds comment in simple form.
Builds element in simple form.
Builds empty element in simple form.
Builds processing instruction in simple form.
Builds reference in simple form.
Types
@type cdata() :: {:cdata, String.t()}
@type characters() :: {:characters, String.t()}
@type comment() :: {:comment, String.t()}
@type dec_ref() :: {:reference, {:decimal, integer()}}
@type entity_ref() :: {:reference, {:entity, String.t()}}
@type hex_ref() :: {:reference, {:hexadecimal, integer()}}
@type ref() :: entity_ref() | hex_ref() | dec_ref()
Functions
Builds CDATA in simple form.
@spec characters(text :: term()) :: characters()
Builds characters in simple form.
Builds comment in simple form.
@spec element( name :: term(), attributes :: [{key :: term(), value :: term()}], children :: term() ) :: element()
Builds element in simple form.
@spec empty_element( name :: term(), attributes :: [{key :: term(), value :: term()}] ) :: element()
Builds empty element in simple form.
@spec processing_instruction( name :: String.t(), instruction :: String.t() ) :: processing_instruction()
Builds processing instruction in simple form.
Builds reference in simple form.