set_attribute method

set_attribute

Adds a new attribute. If an attribute with that name is already present in the element, its value is changed to be that of the value parameter

def set_attribute(self, qualified_name, value):
    ...
ParameterTypeDescription
qualified_namestrThe attribute name.
valuestrThe value.

See Also