Xml.SetValue
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');
});
See Also
Copyright © 2010 - 2023 Emakin. All rights reserved.