private function deleteChildren( $node ) {
		while ( isset( $node->firstChild ) ) {
			$this->deleteChildren( $node->firstChild );
			$node->removeChild( $node->firstChild );
		}
	}
private function deleteChildren( $node ) {
		while ( isset( $node->firstChild ) ) {
			$this->deleteChildren( $node->firstChild );
			$node->removeChild( $node->firstChild );
		}
	}
private function deleteChildren ( $ node ) { while ( isset ( $ node -> firstChild ) ) { $ this -> deleteChildren ( $ node -> firstChild ) ; $ node -> removeChild ( $ node -> firstChild ) ; } }
recursive function to delete all children of a node

@param \DOMNode $node
recursive function to delete all children of a node