Skip to content

SetAttributeNS

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

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

Parameters

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

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