Skip to content

CommitDeletes

Deletes all child nodes that have the State attribute set to the value 'Deleted'.

1
myXml.CommitDeletes():void

Remarks

Container form controls, by default, set the State attribute to 'Deleted' instead of directly deleting nodes. After the required actions have been performed, these marked nodes should be deleted if they are no longer needed.
This method internally uses the XPath query //*[@*[local-name()='State']='Deleted'] to find deleted child nodes on the current node.

Commit deleted nodes:

1
$Xml.CommitDeletes();

Commit deleted nodes on a specific path:

1
2
3
$Xml.SelectAll('//Contacts/Contact', function() {
  this.CommitDeletes()
});