eeue56/elm-xml/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Xml.Query

Search the parsed XML

tags : String -> Value -> List Value

Search an XML value for any tags matching

>>> import Xml.Encode exposing (object, null, encode, Value(Tag, Object))
>>> import Dict
>>> object [ ("name", Dict.empty, null)] |> tags "name"
[Tag "name" Dict.empty (Object []) ]
contains : Value -> Value -> Bool

check if a XML value contains another XML value