private function emptyNodes() { $this->each(function (\DOMNode $node) { $node->nodeValue = ''; }); $this->_useDocumentContext = TRUE; return $this; }