Xml.CommitDeletes

Overview

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

void myXml.CommitDeletes()

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.

Example

Commit deleted nodes

$Xml.CommitDeletes();

Example

Commit deleted nodes on specific path

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

Copyright © 2010 - 2023 Emakin. All rights reserved.