
## set_attribute {#str-str}

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



```python
def set_attribute(self, qualified_name, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| qualified_name | str | The attribute name. |
| value | str | The value. |



### See Also
* module [`aspose.html.dom.svg`](../../)
* class [`SVGLineElement`](/html/python-net/aspose.html.dom.svg/svglineelement)
