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 3 Next »

Overview

Updates all nodes on specified xpath or current node value.

void myXml.SetValue(value: any)

Updates all nodes on specified xpath or current node value.

void myXml.SetValue(xpath: string, value: object)

Arguments

any value
Value to set
string xpath
XPath of node to update. If not specified current node is used.

Example

Updates with an xpath

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

Example

Updates the current node value

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