Your memory problems would be avoided by printing the results as you find them instead of saving them in an array and printing them all at once.
There are other issues.
In reply to Re: Parsing Large XML
by ikegami
in thread Parsing Large XML
by shravnk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |