XML or SQLite?

Discussion in 'iOS Programming' started by Wailord, Jun 12, 2009.

  1. Wailord macrumors 6502

    Joined:
    Apr 29, 2007
    #1
    I'm weighing the pros and cons of using either XML files or SQLite files within an application on the iPhone that will be receiving weekly deliveries of new content. The files won't be huge (maybe 30kb at most). Whichever I choose needs to be cost effective and highly compressable if possible. At this point I understand that XML will be easier to implement, but SQLite is supposedly faster- which would you guys choose and why?
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    I'd start with the easier solution being XML. Then if you notice slowdowns or high memory use, try SQLite.
     
  3. mclifford82 macrumors newbie

    Joined:
    Jun 11, 2009
    Location:
    Burnsville, MN, USA
    #3
    If you are familiar with one or both already, go with what you know. If you don't know either, XML would probably be quicker to pick up than SQL.

    I'm more comfortable with SQL than XML, so unless I come across an instance where I have to use XML, I'll opt for SQL.
     
  4. MacDonaldsd macrumors 65816

    MacDonaldsd

    Joined:
    Sep 8, 2005
    Location:
    London , UK
    #4
    If you change your schema (adding a new class that needs to be stored), XML is a lot less trouble.
     

Share This Page