## XmlElement::SetAttribute(String, String, String) method


Sets the value of the attribute with the specified local name and namespace URI.

```cpp
virtual String System::Xml::XmlElement::SetAttribute(String localName, String namespaceURI, String value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| localName | String | The local name of the attribute. |
| namespaceURI | String | The namespace URI of the attribute. |
| value | String | The value to set for the attribute. |

### ReturnValue

The attribute value.

## See Also

* Class [String](../../../system/string/)
* Class [XmlElement](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
## XmlElement::SetAttribute(String, String) method


Sets the value of the attribute with the specified name.

```cpp
virtual void System::Xml::XmlElement::SetAttribute(String name, String value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | String | The name of the attribute to create or alter. This is a qualified name. If the name contains a colon it is parsed into prefix and local name components. |
| value | String | The value to set for the attribute. |

## See Also

* Class [String](../../../system/string/)
* Class [XmlElement](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
