Companion
Functions
Link copied to clipboard
fun <T : Any> decodeFromReader(deserializer: DeserializationStrategy<T>, reader: XmlReader, rootName: QName? = null): T
Parse an object of the type T out of the reader
Link copied to clipboard
fun <T> decodeFromString(deserializer: DeserializationStrategy<T>, string: String, rootName: QName?): T
Parse an object of the type T out of the reader
Link copied to clipboard
Transform the object into an XML string. This requires the object to be serializable by the kotlin serialization library (either it has a built-in serializer or it is kotlinx.serialization.Serializable.
Link copied to clipboard
fun <T> encodeToWriter(target: XmlWriter, serializer: SerializationStrategy<T>, value: T, prefix: String? = null)
fun <T> encodeToWriter(target: XmlWriter, serializer: SerializationStrategy<T>, value: T, rootName: QName)
Write the object to the given writer
Link copied to clipboard