protected function endDocument()
    {
        $xml = $this->getXml();
        $xml->endElement(); // </tweakwise>
        $xml->endDocument();
        $this->flush();
        return $this;
    }
protected function endDocument()
    {
        $xml = $this->getXml();
        $xml->endElement(); // </tweakwise>
        $xml->endDocument();
        $this->flush();
        return $this;
    }
protected function endDocument ( ) { $ xml = $ this -> getXml ( ) ; $ xml -> endElement ( ) ; // </tweakwise> $ xml -> endDocument ( ) ; $ this -> flush ( ) ; return $ this ; }
Write document end
@return $this
Write document end