protected function close_xml_writer() {
        if ($this->xmlwriter instanceof xml_writer) {
            $this->xmlwriter->stop();
        }
        unset($this->xmlwriter);
        $this->xmlwriter = null;
        $this->xmlfilename = null;
    }
protected function close_xml_writer() {
        if ($this->xmlwriter instanceof xml_writer) {
            $this->xmlwriter->stop();
        }
        unset($this->xmlwriter);
        $this->xmlwriter = null;
        $this->xmlfilename = null;
    }
protected function close_xml_writer ( ) { if ( $ this -> xmlwriter instanceof xml_writer ) { $ this -> xmlwriter -> stop ( ) ; } unset ( $ this -> xmlwriter ) ; $ this -> xmlwriter = null ; $ this -> xmlfilename = null ; }
Close the XML writer

At the moment, the caller must close all tags before calling

@return void
Close the XML writer