Skip to content

XmlNode.SetAttributeNS

Overview

void XmlNode.SetAttributeNS ( namespaceURI, attributeName, value )
Sets an attribute on the current node to the specified value on specified namespace URI.

Arguments

String namespaceURI

Specifies the attribute namespace URI

String attributeName

Specifies the name of attribute.

String value

Specifies the value of attribute.

Remarks

If attribute does not exist, it is created automatically.

Examples

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

See Also