This project is a cross-platform XML serialization (wrapping) library compatible with kotlin serialization. It provides capabilities for Android, JVM and JS (alpha quality)
It also provides serialization support
Help wanted: Any help with extending this project is welcome. Help is especially needed for the following aspects:
- Documentation updates
- Testing, in particular more extensive tests. Some tests already exist for both JVM and Android
- Javascript support
- Core Javascript support needs testing but should work. It is based on DOM so may be slow
- Javascript serialization support: make serialization work on Javascript once possible
- Native support: Currently there is no implementation for Kotlin native.
The library is designed as a multiplatform kotlin module, but platform-specific versions can also be used were appropriate.
implementation("net.devrieze:xmlutil:0.8.0")
implementation("net.devrieze:xmlutil-jvm:0.8.0")
implementation("net.devrieze:xmlutil-android:0.8.0")
implementation("net.devrieze:xmlutil-js:0.8.0")
implementation("net.devrieze:xmlutil-serialization:0.8.0")
implementation("net.devrieze:xmlutil-serialization-jvm:0.8.0")
implementation("net.devrieze:xmlutil-serialization-android:0.8.0")
implementation("net.devrieze:xmlutil-serialization-js:0.8.0")
Container for the core library (versions)
All code shared between Javascript and Java (either jvm or android)
All code that is common, but not shared between Jvm and Android platforms
Code specific to the Android platform (Pulls in core.java as API dependency). This is a regular jar rather than an AAR as the only specific thing to Android is the XML library
Implementation of the shared code for Java based platforms (both Android and JVM)
Javascript based implementation
Code unique to the JVM platform (Pulls in core.java as API dependency)
The kotlinx.serialization plugin to allow serialization to XML
The java version of the serialization plugin. Please note that it does not pull in the platform specific library. The core library is dependent on the actual platform used (JVM or Android). This library only pulls in the shared Java code.
The JVM version merely uses the jvm platform xml library but the serialization is
The Javascript version of the serialization plugin. This is not yet implemented due to missing annotation support for javascript and the 0.6.0 version of kotlinx.serialization not supporting type annotations.
An android test project to test serialization on Android.