). * * @return int one of the Tokenizer::TEXTMODE_* constants */ public function startTag($name, $attributes = array(), $selfClosing = false); /** * An end-tag. */ public function endTag($name); /** * A comment section (unparsed character data). */ public function comment($cdata); /** * A unit of parsed character data. * * Entities in this text are *already decoded*. */ public function text($cdata); /** * Indicates that the document has been entirely processed. */ public function eof(); /** * Emitted when the parser encounters an error condition. */ public function parseError($msg, $line, $col); /** * A CDATA section. * * @param string $data * The unparsed character data */ public function cdata($data); /** * This is a holdover from the XML spec. * * While user agents don't get PIs, server-side does. * * @param string $name The name of the processor (e.g. 'php'). * @param string $data The unparsed data. */ public function processingInstruction($name, $data = null); }