I just implemented my first XmlParser
object (MyParserObj
) that relies on the NSXMLParser object.
This parser is embedded inside a tableviewController
(MyTableViewController
) and it starts parsing at MyTableViewController
's viewDidLoad
method.
Ok.This is working just fine.It's a small Xml file though! I was wondering if I should choose a different approach when dealing with big Xml files? Will memory suffer when parsing large xml documents?
UPDATE
The real point I want to understand is the flow of the process:
I placed few breakpoints now and it looks like this:
- the app first encounters ( inside MyTableViewController's viewDidLoad method )the [MyParserObj parseXMLFileAtURL:path] and starts parsing the Xml document;
- The app finishes parsing the whole Xml Document (parserDidEndDocument..);
- The tableviewController starts populating its tableView Cells (cellForRowAtIndexPath..);
Apart from choosing a XmlParser (Between those you suggested) that is more or less time/memory consuming are the above steps going to be the same?
If positive, is it correct to think of starting populating the cells as soon as The Parser is done with that specific element?How do I do that?
thanks
Luca