XmlNode.CommitDeletes
Overview¶
void XmlNode.CommitDeletes ( )
Remarks¶
Container form controls by default instead of delete nodes directly, sets the State attribute to 'Deleted' value. After required actions have been performed, these marked nodes should be deleted if not needed.
This method internally uses //[@[local-name()='State']='Deleted'] xpath query to find deleted children on current node.
Examples¶
Commit deleted nodes
$Xml.CommitDeletes();
Commit deleted nodes on specific path
$Xml.SelectAll('//Contacts/Contact', function() { this.CommitDeletes() });