note / xml-lens   0.1.0

MIT License Website GitHub

XML Optics library for Scala

Scala versions: 2.12 2.11
Scala.js versions: 0.6

XML Optics library for Scala. Documentation available here:

Build Status Coverage Status


XML scala libraries are kind of neglected. That stands in stark contrast to JSON for which Scala has dozens of projects. Of course, JSON is much more popular and XML at the same time is regarded as a legacy standard but still - there are many situations where you need to work with XML.

Status of project

Some early versions of the project has been released. It's definitely not very mature yet. In next releases I would like to focus on DSL and optics aspects as suprisingly in the first release a lot of time was spent on io module. Don't expect rapid development as it's just side project made in my free time.


How to generate documentation

sbt docs/makeMicrosite

After docs has been successfully generated you can serve it with:

cd docs/target/site
jekyll serve

Pushing documentation to github page

You can push generated documentation with:


Mind that you have to have access to push to repository defined in build.sbt to make above snippet work.

How to run JMH benchmark


bench/jmh:run -i 10 -wi 10 -f1 -t1 -prof gc .*Roundtrip*.


Contributions are very welcome. All code or documentation that is provided must be licensed with the same license xml-lens is licensed with (MIT license, available here.


All code is available to you under the MIT license, available here.


Many thanks to scalac that funded early development of xml-lens.