Answer the question
In order to leave comments, you need to log in
How to move to the desired element by index in a large xml file?
There are xml files larger than 2 gig, there is an example script for processing, like:
$reader = new XMLReader();
$reader->open($file);
while ($reader->read() && $reader->name !== 'item');
while ($reader->name === 'item') {
/// обрабатываем данные и идем к следующему....
$reader->next('item');
}
$reader->close();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question