XML or SQLite?

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

  1. Wailord macrumors 6502

    Apr 29, 2007
    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


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

    Jun 11, 2009
    Burnsville, MN, USA
    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


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

Share This Page