Use this module for turning your Elm data into an XML string.
Take a value, then generate a string from it
Settings used by encodeWith.
nullValue: if not omitNullTag, encode a NullNode like this.omitNullTag: if True, omit a tag if it has no attributes and
its only content is a NullNode.Good default settings for EncodeSettings.
Encode a string
string "hello" |> encode 0
--> "hello"
string "<hello>" |> encode 0
--> "<hello>"Encode an "object" (a tag) only allowing valid tag names
import DictEncode a list of nodes, e.g
import Dict
list [ object [ ("Root", Dict.empty, null) ], int 5 ] |> encode 0
--> "<Root></Root>\n5"Encode content as CDATA (Character Data) for embedding HTML or other XML content
cdata "<p>This is <strong>bold</strong> text</p>" |> encode 0
--> "<![CDATA[<p>This is <strong>bold</strong> text</p>]]>"
Take a value, then generate a string from it