This questions is conceptual, around the MVC pattern in OOP. Here is the plot: We are in an rich client application which works with a REST webservice. We do a GET request to a ressource on the server, the server return a response formatted in XML. The response look like an RSS feed. The client application need to parse and display this XML into a readable mod.
I've made a model object, which basically reflect a server database table, I also have a parser and a view controller (and obviously a view).
Here is how it works today. The view controller tell the parser to start parsing, the parser (SAX type) read the XML, and instantiate a model object and load detail in it properties. Each time the parser is done with an item it notify the view controller troughs delegate method. It send the parsed item (the type is the model object) to the view controller. THe view controller add this item into a collection .
When the parser finished parsing the XML, it notify the view controller, then the view controller read each item if the collection and build the view.
Here are my questions.
Here are some points about your question: