This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0 1.0.1
We were not able to find the expected elm-package.json file at this tag.
Tag 1.0.2
Committed At 2018-10-21 13:36:13 UTC

Modules

    README

    elm-http-xml

    Generates HTTP request for XML API. Can be used with elm/http.

    Using ymtszw/elm-xml-decode for decoding XML response into Elm values.

    Basic Example

    import Http
    import Http.Xml
    import Xml.Decode exposing (..)
    
    type alias Data =
        { string : String
        , integers : List Int
        }
    
    type Msg = XmlApiResponse (Result Http.Error Data)
    
    getXml : Cmd Msg
    getXml =
        Http.send XmlApiResponse <|
            Http.Xml.get "https://example.com/data.xml" dataDecoder
    
    dataDecoder : Decoder Data
    dataDecoder =
        map2 Data
            (path [ "path", "to", "string" ] (single string))
            (path [ "path", "to", "int", "list" ] (list int))
    
    

    License

    BSD-3-Clause