ElixirXML.Parser (ElixirXML v0.0.1)

View Source

XML Parser for converting raw XML text into structured Elixir maps.

Summary

Functions

Parses an XML string and returns a structured representation.

Functions

parse(buffer)

@spec parse(binary()) :: map()

Parses an XML string and returns a structured representation.

Examples

iex> ElixirXML.Parser.parse("<root><child>Content</child></root>")
%{name: "root", attributes: %{}, children: [%{name: "child", attributes: %{}, children: ["Content"]}]}