XMLData.EraseAllChildren
Declaration: EraseAllChildren
Description
EraseAllChildren deletes all associated children of the XMLData object.
Errors
1500 | The XMLData object is no longer valid. |
1900 | Document must not be modified |
Example
The sample erases all elements of the active document.
Dim objCurrentParent As XMLData
Set objCurrentParent = objSpy.ActiveDocument.RootElement
objCurrentParent.EraseAllChildren