/** * @return string */ public function __toString() { return $this->_node instanceof \DOMDocument ? $this->_node->saveXml() : $this->_node->ownerDocument->saveXml($this->_node); }