I have an xml like this (just an example):
<xml>
<page>
<lol>
</lol>
<lel>
</lel>
</page>
<page>
<lol>
</lol>
<lel>
</lel>
</page>
<page>
<lol>
</lol>
<lel>
</lel>
</page>
</xml>
I need a way to do something like this:
#Sax code
for page in something:
parse(page)
How i can do this with sax?
The xml file contains 30GB of data.
You could use the sax parser in a thread. When it detects a full fage it pushes it to a queue. In your main thread, iterate over the queue.