AttributeSet.set

string set(string name, string value)

Sets a value for attribute with name. If the attribute doesn't exist, this will create it, even if value is null.