newWriter

actual fun IXmlStreaming.newWriter(output: Appendable, repairNamespaces: Boolean, xmlDeclMode: XmlDeclMode): XmlWriter

Create a new XmlWriter that appends to the given Appendable.

Return

A (potentially platform specific) XmlWriter

Parameters

output

The appendable to which the XML will be written

repairNamespaces

Should the writer ensure that namespace declarations are written when needed, even when not explicitly done.

xmlDeclMode

When not explicitly written, this parameter determines whether the XML declaration is written.


actual fun IXmlStreaming.newWriter(writer: Writer, repairNamespaces: Boolean, xmlDeclMode: XmlDeclMode): XmlWriter

Create a new XmlWriter that appends to the given Writer. This writer could be a platform specific writer.

Return

A (potentially platform specific) XmlWriter

Parameters

writer

The writer to which the XML will be written. This writer will be closed by the XmlWriter

repairNamespaces

Should the writer ensure that namespace declarations are written when needed, even when not explicitly done.

xmlDeclMode

When not explicitly written, this parameter determines whether the XML declaration is written.

expect fun IXmlStreaming.newWriter(output: Appendable, repairNamespaces: Boolean = false, xmlDeclMode: XmlDeclMode = XmlDeclMode.None): XmlWriter

Create a new XmlWriter that appends to the given Appendable. This writer could be a platform specific writer.

Return

A (potentially platform specific) XmlWriter

Parameters

output

The appendable to which the XML will be written

repairNamespaces

Should the writer ensure that namespace declarations are written when needed, even when not explicitly done.

xmlDeclMode

When not explicitly written, this parameter determines whether the XML declaration is written.


expect fun IXmlStreaming.newWriter(writer: Writer, repairNamespaces: Boolean = false, xmlDeclMode: XmlDeclMode = XmlDeclMode.None): XmlWriter

Create a new XmlWriter that appends to the given Writer. This writer could be a platform specific writer.

Return

A (potentially platform specific) XmlWriter

Parameters

writer

The writer to which the XML will be written. This writer will be closed by the XmlWriter

repairNamespaces

Should the writer ensure that namespace declarations are written when needed, even when not explicitly done.

xmlDeclMode

When not explicitly written, this parameter determines whether the XML declaration is written.

Create a new DomWriter that results in writing to DOM with dest as the receiver node.

Return

The DomWriter

Parameters

dest

Destination node that will be the root


actual fun IXmlStreaming.newWriter(output: Appendable, repairNamespaces: Boolean, xmlDeclMode: XmlDeclMode): XmlWriter

Create a new XmlWriter that appends to the given Appendable. This writer could be a platform specific writer.

Return

A (potentially platform specific) XmlWriter

Parameters

output

The appendable to which the XML will be written

repairNamespaces

Should the writer ensure that namespace declarations are written when needed, even when not explicitly done.

xmlDeclMode

When not explicitly written, this parameter determines whether the XML declaration is written.


actual fun IXmlStreaming.newWriter(writer: Writer, repairNamespaces: Boolean, xmlDeclMode: XmlDeclMode): XmlWriter

Create a new XmlWriter that appends to the given Writer. This writer could be a platform specific writer.

Return

A (potentially platform specific) XmlWriter

Parameters

writer

The writer to which the XML will be written. This writer will be closed by the XmlWriter

repairNamespaces

Should the writer ensure that namespace declarations are written when needed, even when not explicitly done.

xmlDeclMode

When not explicitly written, this parameter determines whether the XML declaration is written.

fun IXmlStreaming.newWriter(outputStream: OutputStream, encoding: String, repairNamespaces: Boolean = false): XmlWriter

Create a new XmlWriter that appends to the given OutputStream. This writer could be a platform specific writer.

Return

A (potentially platform specific) XmlWriter

Parameters

outputStream

The output stream to which the XML will be written. This writer will be closed by the XmlWriter

encoding

The character encoding to be used.

repairNamespaces

Should the writer ensure that namespace declarations are written when needed, even when not explicitly done.


fun IXmlStreaming.newWriter(writer: Writer, repairNamespaces: Boolean = false, xmlDeclMode: XmlDeclMode = XmlDeclMode.None): XmlWriter

Create a new XmlWriter that appends to the given java specific java.io.Writer.

Return

A (potentially platform specific) XmlWriter

Parameters

writer

The writer to which the XML will be written. This writer will be closed by the XmlWriter

repairNamespaces

Should the writer ensure that namespace declarations are written when needed, even when not explicitly done.

xmlDeclMode

When not explicitly written, this parameter determines whether the XML declaration is written.


actual fun IXmlStreaming.newWriter(writer: Writer, repairNamespaces: Boolean, xmlDeclMode: XmlDeclMode): XmlWriter

Create a new XmlWriter that appends to the given multi-platform MPWriter.

Return

A (potentially platform specific) XmlWriter

Parameters

writer

The writer to which the XML will be written. This writer will be closed by the XmlWriter

repairNamespaces

Should the writer ensure that namespace declarations are written when needed, even when not explicitly done.

xmlDeclMode

When not explicitly written, this parameter determines whether the XML declaration is written.


actual fun IXmlStreaming.newWriter(output: Appendable, repairNamespaces: Boolean, xmlDeclMode: XmlDeclMode): XmlWriter

Create a new XmlWriter that appends to the given Writer. This writer could be a platform specific writer.

Return

A (potentially platform specific) XmlWriter

Parameters

output

The output to write to

repairNamespaces

Should the writer ensure that namespace declarations are written when needed, even when not explicitly done.

xmlDeclMode

When not explicitly written, this parameter determines whether the XML declaration is written.