encodeToWriter
Write the object to the given writer
Parameters
value
The actual object
target
The XmlWriter to append the object to
prefix
The prefix (if any) to use for the namespace
fun <T> encodeToWriter(target: XmlWriter, serializer: SerializationStrategy<T>, value: T, prefix: String? = null)(source)
Transform onto an existing xml writer.
Parameters
target
The XmlWriter to append the object to
value
The actual object
serializer
The serializer/saver to use to write
prefix
The prefix (if any) to use for the namespace
fun <T> encodeToWriter(target: XmlWriter, serializer: SerializationStrategy<T>, value: T, rootName: QName?)(source)
Transform onto an existing xml writer.
Parameters
target
The XmlWriter to append the object to
serializer
The serializer/saver to use to write
rootName
The QName to use for the root tag
value
The actual object