Synchronizing the underlying data model using the web service

This problem stuck my ass for several days.

I have a web service that serves XML that looks like this:

<levels>
    <level>Level 1</level>
    <level>Level 2</level>
    <level>Consulting</level>
    <level>Office Support</level>
    <level>Learning</level>
</levels>

This data must go into an object in my Core Data model so that it can be used by my application. I could just parse them into models, my problem arises when one of the levels changes. I can create, read, and delete, but I cannot figure out how to update, because I need to maintain relationships that exist with other objects in my model. I came from a strong background of PHP and MySQL, so my first instinct was to add a key to a model that I could use for communication, but since Core Data is actually not a database, it feels wrong, and I know that there should be a better way. I searched Google a little and could not find the answer. Am I on the right track with a key or is Core Data offering something that I am missing?

+5
1

, , , , - , Core Data. , UUID iPhone.

+2

All Articles