Popularity
3.4
Stable
Activity
0.0
Stable
21
1
4

Monthly Downloads: 2,082
Programming language: Elixir
License: Apache License 2.0
Tags: XML    

exml alternatives and similar packages

Based on the "XML" category.
Alternatively, view exml alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of exml or a related project?

Add another 'XML' Package

README

Exml

Travis Hex.pm Hex.pm

Add to mix.exs

  defp deps() do
    [
      {:exml, "~> 0.1.1"}
    ]
  end

Basic usage

xml = """
<?xml version="1.0" encoding="UTF-8"?>
<bookstore>
    <book>
        <title lang="en">Harry Potter</title>
        <price>29.99</price>
    </book>
    <book>
        <title lang="en">Learning XML</title>
        <price>39.95</price>
    </book>
</bookstore> 
"""

doc = Exml.parse xml

Exml.get doc, "//book[1]/title/@lang"
#=> "en"

Exml.get doc, "//title"
#=> ["Harry Potter", "Learning XML"]

See w3schools for details about xpath!