Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Overview

Sets an attribute on current node to specified value.

void myXml.SetAttribute(attributeName: string, attributeValue: string)

Arguments

string attributeName
Qualified name of attribute.
string attributeValue
Value of attribute.

Remarks

If attribute does not exist, it is created automatically.

This method uses empty namespace for attribute names. If you need to set attribute with a namespace please refer to SetAttributeNS method.

Example

Usage

$Xml.SetAttribute('Name', 'John');
  • No labels