i want to parse large xml file in iPhone and i have tried touch xml , gData and other xml parsers including SAX parsers .. my app crashes after parsing xml files or during parsing xmls because it keeps 40 MB of data in memory
What would be the best way to parse large xml files ? i want to parse the data and insert it into core data.
Thanks Much
From this article (under “Which to Choose” section):
If you are parsing properly you shouldn’t be holding 40MB of parsed data in memory. Be sure to batch insert the data into Core Data as you are parsing to avoid causing a memory warning and a crash of your app.