Braintree v0.6.0 Braintree.XML.Decoder
XML dumping tailored to encoding params sent by Braintree.
Summary
Types
xml :: binary
Functions
Converts an XML document, or fragment, into a map. Type annotation attributes are respected, but all other attributes are ignored.
Examples
iex> Braintree.XML.Decoder.load("<a><b type='integer'>1</b><c>2</c></a>")
%{"a" => %{"b" => 1, "c" => "2"}}
iex> Braintree.XML.Decoder.load("<a><b type='string'>José</b></a>")
%{"a" => %{"b" => "José"}}