Is there a fast way to jump to element using XMLReader?

Posted by Derk on Stack Overflow See other posts from Stack Overflow or by Derk
Published on 2010-04-15T00:25:06Z Indexed on 2010/04/15 0:33 UTC
Read the original article Hit count: 382

Filed under:
|
|
|

I am using XMLReader to read a large XML file with about 1 million elements on the level I am reading from. However, I've calculated it will take over 10 seconds when I jump to -for instance- element 500.000 using XMLReader::next ([ string $localname ] ) or XMLReader::read ( void )

This is not very usable. Is there a faster way to do this?

© Stack Overflow or respective owner

Related posts about php

Related posts about xmlreader