getNamedItemNS

fun getNamedItemNS(namespace: String?, localName: String): Attr?(source)

The getNamedItemNS() method of the NamedNodeMap interface returns the Attr corresponding to the given local name in the given namespace, or null if there is no corresponding attribute.

MDN Reference