om.DomDocument.removeElement

Remove a DomNode object and all its descendants.

Syntax

removeElement(
   element om.DomNode )
  1. element is the DOM node to be removed.

Usage

Use the removeElement() method to remove an element and all its descendants from DOM document.

Any reference to the removed om.DomNode objects becomes invalid.