A tiny DSL to generate XML
Latest commit 2241040 Jun 6, 2016 @jonnyzzz Kotlin 1.0.2
Failed to load latest commit information.
.idea update deploy scripts Jan 2, 2016
api cleanup code Feb 5, 2016
gradle/wrapper gradle 2.11 Feb 15, 2016
jdom cleanup code Feb 5, 2016
.gitignore more excludes Dec 19, 2015
.travis.yml add travis ci Dec 19, 2015
LICENSE.md Update LICENSE.md Dec 19, 2015
README.md Update README.md Jan 2, 2016
build.gradle Kotlin 1.0.2 Jun 6, 2016
gradlew gradle wrapper Dec 19, 2015
gradlew.bat gradle wrapper Dec 19, 2015
settings.gradle project model Dec 19, 2015


Build Status

Kotlin XML DLS

This is a tiny library that allows one to generate XML files via Kotlin DSLs.

Project consists of API module with no dependencies from any XML implementations. There is an implementation module that implements API via JDOM



You can freely use this library or sources in the way you like


You may download binaries from maven artifacts repository from here http://dl.bintray.com/jonnyzzz/maven

In Gradle build script it may be done like this

repositories {
  maven { url "http://dl.bintray.com/jonnyzzz/maven" }

dependencies {
  compile "org.jonnyzzz.kotlin.xml.dsl:jdom:<VERSION>"

Usage example

jdom("root-element-name") {
  attribute("attribute", "42")
  text("Hello World")