has_attribute_ns method

has_attribute_ns(namespace_uri, local_name)

Returns true when an attribute with a given local name and namespace URI is specified on this element or has a default value, false otherwise.

Returns

True if has attribute with the namespace URI and local name; otherwise, false.

def has_attribute_ns(self, namespace_uri, local_name):
    ...
ParameterTypeDescription
namespace_uristrThe attribute namespace URI.
local_namestrThe attribute local name.

See Also