---
title: "set_attribute method"
url: "https://reference.aspose.com/html/python-net/aspose.html.dom.svg/svgcursorelement/set_attribute/"
product: "Aspose.HTML for Python via .NET API References"
---


## 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 [`SVGCursorElement`](/html/python-net/aspose.html.dom.svg/svgcursorelement)
