classes/phing/parser/ExpatParser.php
public function parse()
    {
        while (($data = $this->reader->read()) !== -1) {
            if (!xml_parse($this->parser, $data, $this->reader->eof())) {
                $error = xml_error_string(xml_get_error_code($this->parser));
                $e = new ExpatParseException($error, $this->getLocation());
                xml_parser_free($this->parser);
                throw $e;
            }
        }
        xml_parser_free($this->parser);

        return 1;
    }
public function parse()
    {
        while (($data = $this->reader->read()) !== -1) {
            if (!xml_parse($this->parser, $data, $this->reader->eof())) {
                $error = xml_error_string(xml_get_error_code($this->parser));
                $e = new ExpatParseException($error, $this->getLocation());
                xml_parser_free($this->parser);
                throw $e;
            }
        }
        xml_parser_free($this->parser);

        return 1;
    }
public function parse ( ) { while ( ( $ data = $ this -> reader -> read ( ) ) !== - 1 ) { if ( ! xml_parse ( $ this -> parser , $ data , $ this -> reader -> eof ( ) ) ) { $ error = xml_error_string ( xml_get_error_code ( $ this -> parser ) ) ; $ e = new ExpatParseException ( $ error , $ this -> getLocation ( ) ) ; xml_parser_free ( $ this -> parser ) ; throw $ e ; } } xml_parser_free ( $ this -> parser ) ; return 1 ; }
Starts the parsing process.

@return int                 1 if the parsing succeeded
@throws ExpatParseException if something gone wrong during parsing
@throws IOException         if XML file can not be accessed
Starts the parsing process .