Re: Nested XML -> CoreData

2012-05-16 Thread Jerry Krinock
On 2012 May 16, at 09:34, Koen van der Drift wrote: > I will definitely swich to an sqlstore, right now I am using xml for > debugging purposes. You should switch to the SQLite store sooner rather than later. Although I have seen it implied that it is appropriate to develop with XML and "flip

Re: Nested XML -> CoreData

2012-05-16 Thread Koen van der Drift
Thanks for the feedback, very helpful. I will definitely swich to an sqlstore, right now I am using xml for debugging purposes. I will also create entities for each node. - Koen. On Tue, May 15, 2012 at 7:49 PM, Chris Hanson wrote: > On May 15, 2012, at 7:29 AM, Koen van der Drift > wrote: >

Re: Nested XML -> CoreData

2012-05-15 Thread Chris Hanson
On May 15, 2012, at 7:29 AM, Koen van der Drift wrote: > However, the data read with the parser needs to end up in my Core Data > model. Obviously I already created a Person entity, but how do I add the > phone numbers to it? Create a PhoneNumber entity with two attributes? That would be a reas

Nested XML -> CoreData

2012-05-15 Thread Koen van der Drift
I'm parsing a large XML file using NSXMLParser (OS X) and part of the nested structure is similar to this: ... ... Home 123-555-1234 Work 345-555-6612 Mobile 222-555-8901 ... ... In advance I don't know how many phonenumbers there will be, there could be none, or more