om.DomDocument.removeElement

Remove a DomNode object and all its descendants.

Syntax

removeElement(
   oldChild om.DomNode )
  1. oldChild 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.