public function format()
	{
		while ($this->_buffer = fread($this->_input, $this->_options["bufferSize"])) {
			if (!xml_parse($this->_parser, $this->_buffer, feof($this->_input))) {
				throw new Exception(sprintf("XML error: %s at line %d",
                    xml_error_string(xml_get_error_code($this->_parser)),
                    xml_get_current_line_number($this->_parser)));
					return;
			}
			
			$this->_offset += strlen($this->_buffer);
		}
		
		xml_parser_free($this->_parser);
	}
public function format()
	{
		while ($this->_buffer = fread($this->_input, $this->_options["bufferSize"])) {
			if (!xml_parse($this->_parser, $this->_buffer, feof($this->_input))) {
				throw new Exception(sprintf("XML error: %s at line %d",
                    xml_error_string(xml_get_error_code($this->_parser)),
                    xml_get_current_line_number($this->_parser)));
					return;
			}
			
			$this->_offset += strlen($this->_buffer);
		}
		
		xml_parser_free($this->_parser);
	}
public function format ( ) { while ( $ this -> _buffer = fread ( $ this -> _input , $ this -> _options [ "bufferSize" ] ) ) { if ( ! xml_parse ( $ this -> _parser , $ this -> _buffer , feof ( $ this -> _input ) ) ) { throw new Exception ( sprintf ( "XML error: %s at line %d" , xml_error_string ( xml_get_error_code ( $ this -> _parser ) ) , xml_get_current_line_number ( $ this -> _parser ) ) ) ; return ; } $ this -> _offset += strlen ( $ this -> _buffer ) ; } xml_parser_free ( $ this -> _parser ) ; }
Main format method

@param void
@throws Exception
@return void
Main format method