Generates HTTP request for XML API.
Using Xml.Decode for decoding XML response into Elm value.
Expect the response body to be XML.
You provide Xml.Decode.Decoder to decode that XML into Elm value.
Note: Currently, Expect type does not come with content-negotiation capability using Accept header.
So if your target APIs require Accept: application/xml headers,
you have to insert them using Http.request.
See this issue: https://github.com/elm/http/issues/54
Put an XML string in the body. Adding
Content-type: application/xmlheader.Note: Currently
elm-xml-decodepackage DOES NOT provide XML "encode" functions, norelm-xml-parser. Contributions are welcomed!