withAttribute

open fun withAttribute(name: String, value: String): Xml

Fluent wrapper for setAttribute.