Skip to content

XmlNode.CommitDeletes

Overview

void XmlNode.CommitDeletes ( )
Deletes all children that have State attribute set to 'Deleted' value.

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()
});

See Also