## Element.SetAttribute method

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.

```csharp
public void SetAttribute(string name, string value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | The attribute name. |
| value | String | The attribute value. |

### See Also

* class [Element](../../element)
* namespace [Aspose.Finance.Xbrl.Dom](../../element)
* assembly [Aspose.Finance](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Finance.dll -->
