$this->scanner->
consume();
return true;
} /**
* Consume a tag name and body. See section 8.2.4.10.
*/
protected function tagName() { // We know this is at least one char.
$name =
$this->scanner->
charsWhile(':_-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
);
$name = self::CONFORMANT_XML ===
$this->mode ?
$name :
strtolower($name);
$attributes = array
();
$selfClose = false;
// Handle attribute parse exceptions here so that we can
// react by trying to build a sensible parse tree.
try { do { $this->scanner->
whitespace();
$this->
attribute($attributes);
} while (!
$this->
isTagEnd($selfClose));
}