writeSimpleElement

Helper function that writes a simple element without attributes and a simple value.

Parameters

qName

The name to use for the element

value

The value to write. If null write an empty tag.


fun XmlWriter.writeSimpleElement(nsUri: String?, localName: String, prefix: String?, value: String?)

Helper function that writes a simple element without attributes and a simple value.

Parameters

nsUri

Namespace URI for the element

localName

The local name for the element

prefix

Hint for the prefix to use (see smartStartTag)

value

The value to write. If null write an empty tag.