Simplify creating Decoders for XML input.
For tagDecoder. How to handle a tag.
Required tags error if not there. RequiredIgnore tags must be in the XML, but are not returned. Optional tags will become null if not in the XML. Multiple tags become a list.
Decode the contents of an XML tag with subtags.
Each TagSpec pulls one or more matching tags from the list.
Unspecified tags in the parsed Value are skipped.
You end up with a single JSON object, with the tags as keys, to which you can apply a standard JSON decoder.
A decoder for Optional XML tags
Decode an XML string containing a single tag into an Elm value.
Decode an XML string into a simplified Json.Encode.Value.
Convert the Xml.Value returned by Xml.Decode.decode to a Json.Encode.Value,
removing all the attributes.
A description of one tag to decode: (<tag name>, Required, <tag decoder>)