Skip to content

edwardsnjd/elm-xml-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XmlParser

Build Status

XML Parser for Elm

How to use

There is only two functions available.

parse : String -> Result Parser.Error Xml
format : Xml -> String

Typically, you'll use parse function, get the root node and traverse it.

> import XmlParser
> XmlParser.parse """<a name="value">foo</a>"""
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

Packages

No packages published

Languages

  • Elm 100.0%