decodeWrappedToSequenceFromSource

inline fun <T> XML.XmlCompanion.decodeWrappedToSequenceFromSource(source: Source, elementName: QName? = null): Sequence<T>
inline fun <T> XML.decodeWrappedToSequenceFromSource(source: Source, elementName: QName? = null): Sequence<T>

Decode a wrapped sequence of elements of type T incrementally. The elements are required to not be primitives (that encode to/parse from text).

This function will assume an unspecified wrapper element. It will read this element and return a sequence of the child elements,

Note that when the element name is not provided, it is detected on the first element. Subsequent elements must have the same name (namespace, localname).

Parameters

source

The source used to read from

elementName

The name of the element. If null, automatically detected on content.


fun <T> XML.XmlCompanion.decodeWrappedToSequenceFromSource(deserializer: DeserializationStrategy<T>, source: Source, elementName: QName?): Sequence<T>
fun <T> XML.decodeWrappedToSequenceFromSource(deserializer: DeserializationStrategy<T>, source: Source, elementName: QName? = null): Sequence<T>

Decode a wrapped sequence of elements of type T incrementally. The elements are required to not be primitives (that encode to/parse from text).

This function will assume an unspecified wrapper element. It will read this element and return a sequence of the child elements,

Note that when the element name is not provided, it is detected on the first element. Subsequent elements must have the same name (namespace, localname).

Parameters

deserializer

The deserializer to decode the elements.

source

The source used to read from

elementName

The name of the element. If null, automatically detected on content.