xmlutil
xmlutil copied to clipboard
XML Serialization library for Kotlin
Here's my XML data format (for simplicity, I've redacted a bunch of elements and attributes that are not essential to this issue): ``` // ... // More `hullRace`s with different...
https://github.com/pdvrieze/xmlutil/blob/805e46d990560147ab1d7e087aa8527a8bf92991/core/base/src/commonMain/kotlin/nl/adaptivity/xmlutil/XmlStreaming.kt#L121-L122 This annotation essentially makes `XmlDeclMode` internal, see https://github.com/FooIbar/EhViewer/actions/runs/9536087101/job/26282595055
# Description Consider the following toy example: ```kt @Serializable data class User(val name: String, val shoppingCart: ShoppingCart) @Serializable(with = ShoppingCartSerializer::class) data class ShoppingCart(val items: MutableList) { val total: Double get()...
``` nl.adaptivity.xmlutil.serialization.UnknownXmlFieldException: Could not find a field for name (Testing.FooOperation) {http://foo.com/}operation/{http://bar.com/}operation (Element) candidates: {http://foo.com/}name (Attribute), {http://bar.com/}output (Element), {http://bar.com/}input (Element), {http://foo.com/}operation (Element) at position 3:39 ``` ```kotlin @Test fun a() {...
(First of all, thank you for your awesome library!!!) I have the following class property in a class `svg` which i want to serialize: `@XmlSerialName("xmlns") val xmlns: String = "http://www.w3.org/2000/svg"`...
Hello, I'm trying to make a GPX file parser but I'm getting stuck because some sites send this style of tag. At the moment I don't need the information in...
When I have this XML ```xml dude & <dudette> ``` I expect to get the following events when I iterate through it via the `XmlReader`: 1. `START_DOCUMENT` 2. `START_ELEMENT` localName="user"...
To make it easier to handle issues when serialization or de-serialization xmlutil should throw exceptions that inherits from [kotlinx.serialization.SerializationException](https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization/index.html)
Having KMP project for android/ios/jvm, going from 0.86.3 to 0.90.1 toml: ``` xmlutil = "0.90.1" xmlutil-core = { module = "io.github.pdvrieze.xmlutil:core", version.ref = "xmlutil" } xmlutil-serialization = { module =...
Hello, Consider the following: ```xml ``` ```kt @Serializable class Base { var extensions: Extensions? = null @Serializable class Extensions { var extension: List? = null @Serializable class Extension { var...