Skip to content

pmarreck/mega_xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MegaXml

Creates an Elixir Map data structure from an XML string or file (either potentially very large; it uses chunking and StringIO) without any configuration

Usage

MegaXml.parse("<foo><bar>123</bar></foo>")

Results:

%{"foo" => %{"bar" => "123"}}

Depends on Erlsom to parse the xml via its SAX event-driven mode which then builds a deeply-nested map/array data structure.

Installation

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

def deps do
  [
    {:mega_xml, "~> 0.1.0"}
  ]
end

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

About

Creates an Elixir Map data structure from an XML string or file (either potentially very large; it uses chunking and StringIO) without any configuration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages