$tok =
$this->scanner->
current();
} 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;
}