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

Overview

Sets the value of current node.

void myXml.SetValue(value: any)

Sets the value of all nodes on specified xpath.

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

Arguments

any value
Value to set
string xpath
XPath of node to update.

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