Skip to content

XmlNode.SetValue

Overview

void XmlNode.SetValue ( [ xpath ], value )
Updates all nodes on specified xpath or current node value.

Arguments

String xpath

XPath of node to update. If not specified current node is used.

object value

Value to set

Remarks

Examples

Updates with an xpath

$Xml.SetValue('//Customer/Id','1');

Updates the current node value

var xml = $Xml.SelectSingle('//Customer/Id', function() {
  this.SetValue('1');
});

See Also