
## set_attribute_node {#aspose.html.dom.Attr}

Adds a new attribute node. If an attribute with that name (nodeName) is already present in the element, it is replaced by the new one.


### Returns 


Returns attribute


```python
def set_attribute_node(self, new_attr):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| new_attr | [`Attr`](/html/python-net/aspose.html.dom/attr) | The new attr. |



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