public function start() {
        if ($this->running === true) {
            throw new xml_writer_exception('xml_writer_already_started');
        }
        if ($this->running === false) {
            throw new xml_writer_exception('xml_writer_already_stopped');
        }
        $this->output->start(); // Initialize whatever we need in output
        if (!is_null($this->prologue)) { // Output prologue
            $this->write($this->prologue);
        } else {
            $this->write($this->get_default_prologue());
        }
        $this->running = true;
    }
public function start() {
        if ($this->running === true) {
            throw new xml_writer_exception('xml_writer_already_started');
        }
        if ($this->running === false) {
            throw new xml_writer_exception('xml_writer_already_stopped');
        }
        $this->output->start(); // Initialize whatever we need in output
        if (!is_null($this->prologue)) { // Output prologue
            $this->write($this->prologue);
        } else {
            $this->write($this->get_default_prologue());
        }
        $this->running = true;
    }
public function start ( ) { if ( $ this -> running === true ) { throw new xml_writer_exception ( 'xml_writer_already_started' ) ; } if ( $ this -> running === false ) { throw new xml_writer_exception ( 'xml_writer_already_stopped' ) ; } $ this -> output -> start ( ) ; // Initialize whatever we need in output if ( ! is_null ( $ this -> prologue ) ) { // Output prologue $ this -> write ( $ this -> prologue ) ; } else { $ this -> write ( $ this -> get_default_prologue ( ) ) ; } $ this -> running = true ; }
Initializes the XML writer, preparing it to accept instructions, also
invoking the underlying @xml_output init method to be ready for operation
Initializes the XML writer preparing it to accept instructions also invoking the underlying