XML parsing in Elm

In Elm, how can I parse an XML file? I see many examples for JSON decoders, but I cannot find an XML decoder.

What alternatives do I have besides REGEX? My XML is pretty simple and it will work, but I know this is a bad idea.

+3
source share
2 answers

This is pretty new:

http://package.elm-lang.org/packages/eeue56/elm-xml/latest

It seems fixation from this year (2017). I think this is what you are looking for!

+2
source

Now, apparently, the XML parsing package does not exist. But maybe you are interested in this project:

https://github.com/toburger/elm-xml-parser

+1
source

Source: https://habr.com/ru/post/1658043/


All Articles