public function replaceChildren($contentNodes) { $this->_node->nodeValue = ''; return $this->appendChildren($contentNodes); }