XmlNode.SetAttribute
Overview¶
void XmlNode.SetAttribute ( attributeName, [ value ] )
Arguments¶
String attributeName
Qualified name of attribute.
String value
Value of attribute.
Remarks¶
If attribute is not exist created automatically.
This method uses empty namespace for attribute names. If you need to set attribute with a namespace please refer to SetAttributeNS method.
Examples¶
Usage
$Xml.SetAttribute('Name', 'John');