EctoXml.BuildHelper (ecto_xml v1.0.1) View Source

Build helper functions for EctoXml.

Link to this section Summary

Functions

Builds one XML element for a given field value.

Builds a list of XML elements for a given ecto schema.

Link to this section Functions

Link to this function

build_xml_element(value, key, base_module)

View Source

Specs

build_xml_element(any(), atom(), module()) :: tuple()

Builds one XML element for a given field value.

Link to this function

build_xml_elements(data, base_module)

View Source

Specs

build_xml_elements(map(), module()) :: [tuple()]

Builds a list of XML elements for a given ecto schema.