AWS.XML behaviour (aws-elixir v0.8.0) View Source

Specifies the behaviour of a XML parser.

You can switch the default XML parser which uses AWS.Util underneath by defining a different implementation by setting the :xml_module configuration in AWS.Client:

client = %AWS.Client{xml_module: MyCustomXMLParser}
AWS.SNS.publish(client, %{})

Link to this section Summary

Callbacks

Decodes a XML into a map. Raises in case of errors.

Encodes a map into XML iodata. Raises in case of errors.

Link to this section Functions

Link to this function

decode!(xml, opts \\ [])

View Source
Link to this function

encode_to_iodata!(map, opts \\ [])

View Source
Link to this macro

xmlElement(args \\ [])

View Source (macro)
Link to this macro

xmlElement(record, args)

View Source (macro)
Link to this macro

xmlText(args \\ [])

View Source (macro)
Link to this macro

xmlText(record, args)

View Source (macro)

Link to this section Callbacks

Specs

decode!(input :: iodata(), options :: keyword()) :: map()

Decodes a XML into a map. Raises in case of errors.

Link to this callback

encode_to_iodata!(input, options)

View Source

Specs

encode_to_iodata!(input :: map(), options :: keyword()) :: iodata()

Encodes a map into XML iodata. Raises in case of errors.