public abstract Attr getAttributeNodeNS (String namespaceURI, String localName) throws DOMException

Retrieves an Attr node by local name and namespace URI.
Per [XML Namespaces] , applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace.

namespaceURI    The namespace URI of the attribute to retrieve.
localName    The local name of the attribute to retrieve.

Returns:  The Attr node with the specified attribute local name and namespace URI or null if there is no such attribute.

DOMException     NOT_SUPPORTED_ERR: May be raised if the implementation does not support the feature "XML" and the language exposed through the Document does not support XML Namespaces (such as [HTML 4.01]).

Since:  DOM Level 2