Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jinjor/elm-xml-parser
XML parser for Elm
https://github.com/jinjor/elm-xml-parser
elm parser xml xml-parser
Last synced: about 1 month ago
JSON representation
XML parser for Elm
- Host: GitHub
- URL: https://github.com/jinjor/elm-xml-parser
- Owner: jinjor
- License: bsd-3-clause
- Created: 2017-05-30T14:04:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-25T14:07:47.000Z (almost 5 years ago)
- Last Synced: 2024-05-09T13:39:18.943Z (8 months ago)
- Topics: elm, parser, xml, xml-parser
- Language: Elm
- Homepage: http://package.elm-lang.org/packages/jinjor/elm-xml-parser/latest
- Size: 86.9 KB
- Stars: 21
- Watchers: 5
- Forks: 9
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
XmlParser
====[![Build Status](https://travis-ci.org/jinjor/elm-xml-parser.svg)](https://travis-ci.org/jinjor/elm-xml-parser)
XML Parser for Elm
## How to use
There is only two functions available.
```elm
parse : String -> Result Parser.Error Xml
format : Xml -> String
```Typically, you'll use `parse` function, get the root node and traverse it.
```elm
> import XmlParser
> XmlParser.parse """foo"""
Ok { processingInstructions = [], docType = Nothing, root = Element "a" ([{ name = "name", value = "value" }]) ([Text "foo"]) }
```I'm not going to make decoder and encoder right now. Please let me know if you are interested :)
## LICENSE
BSD-3-Clause