original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Initializes the XML writer, preparing it to accept instructions, also
  invoking the underlying @xml_output init method to be ready for operation
docstring_tokens: Initializes the XML writer preparing it to accept instructions also invoking the underlying