WechatPay.Utils.XMLBuilder (WechatPay v0.10.0) View Source

Module to convert a map to XML string

Link to this section Summary

Functions

Convert a map to XML string

Link to this section Functions

Specs

to_xml(map()) :: String.t()

Convert a map to XML string

Example

iex> WechatPay.Utils.XMLBuilder.to_xml(%{foo: "bar"})
...> "<xml><foo><![CDATA[bar]]></foo></xml>"