eZXMLInputParser::performPass1 PHP Method

performPass1() public method

* \public Pass 1: Parsing the source HTML string.
public performPass1 ( &$data )
    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;
    }