if (false ===
$tok) { // Handle end of document
$this->
eof();
} else { // Parse character
switch ($this->textMode
) { case Elements::TEXT_RAW:
$this->
rawText($tok);
break;
case Elements::TEXT_RCDATA:
$this->
rcdata($tok);
break;
default:
if ('<' ===
$tok || '&' ===
$tok) { break;
} // NULL character
if ("\00" ===
$tok) { $this->
parseError('Received null character.'
);