attribute

abstract fun attribute(name: String, value: String?, namespace: String? = null): XmlStreamWriter

Write an attribute. Calls to attribute() MUST follow a call to startTag() immediately. If there is no prefix defined for the given namespace, a prefix will be defined automatically. If namespace is null or empty string no namespace prefix is printed but just name.