$this->infiles = explode(';',$infile);
$this->reader = new XMLReader();
$infile = array_shift($this->infiles);
- $this->reader->open( $infile );
+ if (defined( 'LIBXML_PARSEHUGE' ) ) {
+ $this->reader->open( $infile, null, LIBXML_PARSEHUGE );
+ }
+ else {
+ $this->reader->open( $infile );
+ }
}
/**
/**
* @access private
+ * @return string
*/
function nextText() {
$this->skipTo( 'text' );
/**
* @access private
+ * @param $name string
+ * @param $parent string
+ * @return bool|null
*/
function skipTo( $name, $parent = 'page' ) {
if ( $this->atEnd ) {
/**
* @access private
+ * @return null
*/
function close() {
$this->reader->close();