View Source XmlToMap.NestedMap (elixir_xml_to_map v3.1.0)

Module to recursively traverse the output of erlsom.simple_form/1 and produce a nested map with name, attributes, and content fields.

erlsom uses character lists so this library converts them to Elixir binary string.

Summary

Types

Type of a nested map

Types

Link to this type

element()

View Source (since 3.1.0)
@type element() :: %{
  name: String.t(),
  attributes: map() | [{charlist() | String.t(), charlist() | String.t()}],
  content: [element()]
}

Type of a nested map

Functions

Link to this function

parse(list, purge_empty)

View Source (since 3.1.0)