serialize

fun XmlWriter.serialize(reader: XmlReader, keepDuplicatedNsDecls: Boolean = true)

Serialize the content of the reader to the writer. This will continue until the reader has no more events. Note that this does not attempt to balance the tags. It will ignore star/end document events, processing instructions and document declarations if the writer has depth>0 (is in an element where such instructions are illegal).

Receiver

The writer to write to

Parameters

reader

The reader to read from


Helper to write the given node to the xml writer.

Write the node to the writer