public function __toString() { return $this->_node instanceof \DOMDocument ? $this->_node->saveHTML() : $this->_node->ownerDocument->saveHTML($this->_node); }