has_attribute method

has_attribute

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

Returns

true if the specified name has attribute; otherwise, false.

def has_attribute(self, qualified_name):
    ...
ParameterTypeDescription
qualified_namestrThe attribute name.

See Also