Raymo111 / ktxml

kxml goes kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KtXml

Minimal platform-agnostic non-validating XML pull parser based on kxml2.

This is still work in progress and the API might still change.

The most significant changes (relative to XmlPull / KXml2) are:

  • Replaced the Reader as input with CharIterator support, as Java streams are not available for Kotlin native.
  • Reduced the number of places where null is returned
  • Factories removed

For a code example, please take a look at the test.

Import in build.gradle.kts for a "shared" KMM module:

(...)

kotlin {
  
      (...)
  
      sourceSets {
          val commonMain by getting {
              dependencies {
                  implementation("org.kobjects.ktxml:core:0.2.1")
                  (...)
              }
          }
          
      (...)  
              

For a usage / KMM dependency example, please refer to the shared demo module https://github.com/kobjects/konsole

Brainstorming document: https://docs.google.com/document/d/1OXG5F5I-Gp-65cN8THWB1LMTZDnRS96CIBenPcusDDA/edit?usp=sharing

About

kxml goes kotlin

License:Apache License 2.0


Languages

Language:Kotlin 97.7%Language:Ruby 2.3%