A simple xml parser for Scala(.js) based on parboiled2.
While scala-xml supports Scala.js now, the loading of XML is still relying on the JVM parser implementations. xmls aims to provide a good enough XML parser for usage in cross-platform builds (web-only applications could just use the XML parsing of the browser).
See the spec for supported XML elements.
- A XML complete parser
- XSD validation
sbt package
import xmls._
val parsed: Either[XmlParserError, scala.xml.Node] = XMLS.parse("<root><child/><child/></root>")
see dist/example.html for usage in the browser.
Apache License Version 2.0, see LICENSE