Skip to content

musichin/ktXML

Repository files navigation

ktXML

Kotlin CI codecov

Simple XML processing library with immutable data objects.

Create XML Object

val element = elementOf("Book") {
    element("chapter1")
    element("chapter2") {
        text("Lorem ipsum")
    }
}

Serialization

Serialize

val element = elementOf("book")
println(element.serialize())

Deserialize

val element = "<book/>".deserialize()

Binaries

repositories {
    mavenCentral()
}

dependencies {
    compile 'de.musichin.ktxml:ktxml:x.y.z'
    
    // for serialization/deserialization with pull parser
    compile 'de.musichin.ktxml:ktxml-pull:x.y.z'
}

License

Copyright (C) 2016 Anton Musichin

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

XML Library for Kotlin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages