XmlDeserializationStrategy

DeserializationStrategy sub-interface that supports special deserialization for the XML format. The format will call deserializeXML rather than deserialize allowing for special functionality.

Note that if the serialization differs for different formats you must use an XML specific descriptor by using the SerialDescriptor.xml extension function that allows for this special casing. This is a bit of a hack to allow for it to be visible across wrapping descriptors.

Inheritors

Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun deserialize(decoder: Decoder): T
Link copied to clipboard
abstract fun deserializeXML(decoder: Decoder, input: XmlReader, previousValue: T? = null, isValueChild: Boolean = false): T

Deserialize the XML using the implementation. This is intended to be using the XmlReader for special purposes. The format will attempt to shield the input to avoid erroneous parsing.