Overview
Sets an attribute on the current node to the specified value on specified namespace URI.svoid myXml.SetAttributeNS(namespaceUri: string, attributeName: string, attributeValue: string)
Arguments
string namespaceUri
Specifies the attribute namespace URI
string attributeName
Specifies the name of attribute.
string attributeValue
Specifies the value of attribute.
Remarks
If attribute does not exist, it is created automatically.
Example
$Xml.SetAttributeNS('urn:Tempuri', 'Name', 'John');