A lightweight, simple and functional library to work with XML in Scala using native scala xml library and cats core.
Supported Scala 2.12 and 2.13
Maven for 2.12
<dependency>
<groupId>com.github.geirolz</groupId>
<artifactId>advxml_2.12</artifactId>
<version>version</version>
</dependency>
Maven for 2.13
<dependency>
<groupId>com.github.geirolz</groupId>
<artifactId>advxml_2.13</artifactId>
<version>version</version>
</dependency>
Sbt
libraryDependencies += "com.github.geirolz" %% "advxml" % <version>
The idea behind this library is offer a fluent syntax to edit and read xml.
Features:
- Transformation Allows to edit the XML document.
- Traverse read node/attributes mandatory or optional, based on Cats ValidatedNel)
- Convert to Model and vice versa
- Normalize remove white spaces and collapse empty nodes