Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geirolz/advxml
A lightweight, simple and functional DSL library to work with XML in Scala with Cats
https://github.com/geirolz/advxml
cats dsl functional functional-programming library lightweight scala scala-library scala-xml xml
Last synced: 7 days ago
JSON representation
A lightweight, simple and functional DSL library to work with XML in Scala with Cats
- Host: GitHub
- URL: https://github.com/geirolz/advxml
- Owner: geirolz
- License: apache-2.0
- Created: 2019-06-08T17:28:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-01T00:11:17.000Z (23 days ago)
- Last Synced: 2024-12-08T09:03:07.457Z (16 days ago)
- Topics: cats, dsl, functional, functional-programming, library, lightweight, scala, scala-library, scala-xml, xml
- Language: Scala
- Homepage: https://geirolz.github.io/advxml
- Size: 1.1 MB
- Stars: 60
- Watchers: 4
- Forks: 9
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Advxml
[![Build Status](https://github.com/geirolz/advxml/actions/workflows/cicd.yml/badge.svg)](https://github.com/geirolz/advxml/actions)
[![codecov](https://img.shields.io/codecov/c/github/geirolz/advxml)](https://codecov.io/gh/geirolz/advxml)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/db3274b55e0c4031803afb45f58d4413)](https://www.codacy.com/manual/david.geirola/advxml?utm_source=github.com&utm_medium=referral&utm_content=geirolz/advxml&utm_campaign=Badge_Grade)
[![Sonatype Nexus (Releases)](https://img.shields.io/nexus/r/com.github.geirolz/advxml-core_2.13?server=https%3A%2F%2Foss.sonatype.org)](https://mvnrepository.com/artifact/com.github.geirolz/advxml-core)
[![javadoc.io](https://javadoc.io/badge2/com.github.geirolz/advxml-core_2.13/javadoc.io.svg)](https://javadoc.io/doc/com.github.geirolz/advxml-core_2.13)
[![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org)
[![GitHub license](https://img.shields.io/github/license/geirolz/advxml)](https://github.com/geirolz/advxml/blob/main/LICENSE)> ⚠️ Please, have a look to the new WIP project [cats-xml](https://github.com/geirolz/cats-xml) ⚠️
A lightweight, simple and functional library DSL to work with XML in Scala using native scala xml library and cats core.
## How to importAdvxml supports 2.13 and 3
**Sbt**
```sbt mdoc
libraryDependencies ++= Seq(
"com.github.geirolz" %% "advxml-core" % "2.5.0",
"com.github.geirolz" %% "advxml-xpath" % "2.5.0" //optional, for xpath support
)
```## Structure
The idea behind this library is offer a fluent syntax to edit and read xml.*Features:*
- [data/Value](docs/Value.md) Data types for value, keys and attributes.
- [data/Convert](docs/Convert.md) Allow instances conversion (not automatically yet)
- [transform/Transform](docs/Transform.md) Allows to edit the XML document.
- [transform/Zoom](docs/Zoom.md) Allows to traverse an XML do get nodes, attributes and text.
- [transform/Normalize](docs/Normalize.md) Allows normalizing xml docs, removing white spaces and collapse empty nodes
## Contributors
- [@pawelkaczor](https://github.com/pawelkaczor)
- [@dcsobral](https://github.com/dcsobral)
- [@liff](https://github.com/liff)
- [@argast](https://github.com/argast)
- [@danslapman](https://github.com/danslapman)