How to Parse large xml files using SAX?
I want to parse xml file nearly around 7Mb using开发者_Go百科 SAX, is there any methods available to set the file size or something, Please tell how to do parsing using SAX ?
The point about the SAX parser is that size shouldn't really matter. Because it's event driven, the parser only needs to read a little at a time, and send you start/end events as it encounters each XML element. It doesn't build a complete model of the XML in memory (unlike for DOM).
Here's a tutorial.
精彩评论