Skip to content

CommitDeletes

Deletes all children that have State attribute set to 'Deleted' value.

1
myXml.CommitDeletes():void

Remarks

Container form controls, by default, instead of deleting 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.

Commit deleted nodes

1
$Xml.CommitDeletes();

Commit deleted nodes on specific path

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