boolean hasAttributeNS(String namespaceURI, String localName);
namespaceURI
The unique namespace identifier for the attribute, or null for no namespace.
localName
The name of the attribute within the specified namespace.
true if this element has an explicitly specified value or a default value for the specified attribute; false otherwise.
This method works like hasAttribute( ), except that the attribute to be checked for is specified by namespace and name. This method is useful only with XML documents that use namespaces.