writeAttribute

fun XmlWriter.writeAttribute(name: String, value: Any?)
fun XmlWriter.writeAttribute(name: String, value: Long)

Write an attribute (must be in tag writing state - no content written yet).

Parameters

name

The local name to use

value

The value to use for the attribute


fun XmlWriter.writeAttribute(name: QName, value: String?)

Write an attribute (must be in tag writing state - no content written yet).

Parameters

name

The QName to use

value

The value to use for the attribute


fun XmlWriter.writeAttribute(name: String, value: QName?)

Write an attribute (must be in tag writing state - no content written yet).

Parameters

name

The local name to use

value

The value to use for the attribute. The namespace presence will be declared.