getAttributeNS

fun getAttributeNS(namespace: String?, localName: String): String?(source)

Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.

MDN Reference