Skip to content

SetAttributeNS

Sets an attribute on the current node to the specified value in the specified namespace URI.

1
myXml.SetAttributeNS(namespaceUri: string, attributeName: string, attributeValue: string):void

Parameters

string namespaceUri
    The namespace URI of the attribute.

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.

Example

1
$Xml.SetAttributeNS('urn:Tempuri', 'Name', 'John');