SetAttribute¶
Sets an attribute on the current node to the specified value.
1 | |
Parameters¶
string attributeName
The qualified name of the attribute.
string attributeValue
The value of the attribute.
Remarks¶
If the attribute does not exist, it is created automatically. This method uses an empty namespace for attribute names. If you need to set an attribute with a namespace, please refer to the SetAttributeNS method.
Usage¶
1 | |