I\'m trying to parse a large file (> 2GB) of structured markup data and the memory is not enough for this.Which is the optimal way of XML parsing class for this condition.Mo
Check out the iterparse() function. A description of how you can use it to parse very large documents can be found here.
iterparse()