Elixml

Elixml is going to be an xml lib for Elixir that is easy to and enable you to

Installation

If available in Hex, the package can be installed by adding elixml to your list of dependencies in mix.exs:

def deps do
  [
    {:elixml, github: "mlankenau/elixml"}
  ]
end

Usage

Parse an XML file

mydoc =
  File.read!("my_file.xml")
  |> Elixml.parse

# will return the root element like
# %{name: "my_root_element", children: [...], attributes: [...]}

Find elements

Elixml.find(mydoc, "some_element")

# will return the list of elements found

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/elixml.