View Source AWS.XML behaviour (aws-elixir v1.0.0)

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, %{})

Summary

Callbacks

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

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

Callbacks

@callback 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
@callback encode_to_iodata!(input :: map(), options :: keyword()) :: iodata()

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

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)