protected function text() {
        $tok = $this->scanner->current();

        // This should never happen...
        if ($tok === false) {
            return false;
        }
        // Null
        if ($tok === "\00") {
            $this->parseError("Received null character.");
        }
        // fprintf(STDOUT, "Writing '%s'", $tok);
        $this->buffer($tok);
        $this->scanner->next();
        return true;
    }
protected function text() {
        $tok = $this->scanner->current();

        // This should never happen...
        if ($tok === false) {
            return false;
        }
        // Null
        if ($tok === "\00") {
            $this->parseError("Received null character.");
        }
        // fprintf(STDOUT, "Writing '%s'", $tok);
        $this->buffer($tok);
        $this->scanner->next();
        return true;
    }
protected function text ( ) { $ tok = $ this -> scanner -> current ( ) ; // This should never happen... if ( $ tok === false ) { return false ; } // Null if ( $ tok === "\00" ) { $ this -> parseError ( "Received null character." ) ; } // fprintf(STDOUT, "Writing '%s'", $tok); $ this -> buffer ( $ tok ) ; $ this -> scanner -> next ( ) ; return true ; }
This buffers the current token as character data.
This buffers the current token as character data .