setAttributeNS

fun setAttributeNS(namespace: String?, qualifiedName: String, value: String)(source)

The setAttributeNS() method of the Element interface adds a new attribute or changes the value of an attribute with the given namespace and name.

MDN Reference