function performPass1(&$data)
{
$ret = true;
$pos = 0;
if ($this->Document->documentElement) {
do {
$this->parseTag($data, $pos, $this->Document->documentElement);
if ($this->QuitProcess) {
$ret = false;
break;
}
} while ($pos < strlen($data));
} else {
$tmp = null;
$this->parseTag($data, $pos, $tmp);
if ($this->QuitProcess) {
$ret = false;
}
}
return $ret;
}