I have a 52GB xml file that I need to insert into a database but I don't know the structure. I've been searching on how to iterate it with XMLReader but it seems that I have to know the structure to do this. If I do next() more than one time it just goes to the end of the file and if I do it just one time it gives me the first node where all the data is and I can't see anything because of memory issues.
$reader = new XMLReader();
$reader->open('D:\_WORK\ESStatistikListeModtag.xml');
$reader->read();
$reader->next();
var_dump($reader->expand());
This is what I tried and I tried different functions of XMLReader with no success. How can I do this? Thanks for any help or advice.