DOMElement.SetAttribute
Syntax variant: By name
Syntax:
Parameters:
<Name> (required)
An attribute name.
<Value> (required)
An attribute value.
Syntax variant: By local name and namespace URI
Syntax:
Parameters:
<NamespaceURI> (required)
Attribute namespace URI.
<LocalName> (required)
An attribute local name.
<Value> (required)
An attribute value.
Description:
If the attribute with the specified name does not exist in the element, it is created and set to the specified value. Otherwise, the attribute value is changed. The attribute value is not parsed while it is set.
Availability:
Note: