views:

138

answers:

3

Hi stack, i'm working on an app that loads some data from xml file from internet. Is this a good way to develop iPhone apps??...I think xml is more light than SQlite database...

Basically my logic is:

1 - Parsing Xml file from internet to retrive the data

2 - Load data on device

Security?..other stuff??..

Thanks

Mat

+1  A: 

If you are concerned with the size of the message, JSON might be a better fit for you. But XML is a perfectly reasonable data transfer vehicle as well.

Matthew Vines
+5  A: 
mxg
Thank you!!this is the answer to my last comment!And for the security of the data what i have to know?
Mat
A: 

Depending on amount of data to be transmitted, you can use either XML or JSON. In case of XML, I'd recommend you "native" plist format which can be parsed very easily by standard classes found in Core Foundation (See NSDictionary class reference for example).

As datastorage on the device I definitely recommend sqlite database - either used with CoreData or directly with sqlite API.

Regarding security issues, you can use https protocol to secure your data transfers. It does not require any third party components as again it's supported natively.

Matthes
hoe you're going to create CoreData in php, for example? you need an cocoa server, which rises the cost!CoreData is for storing, not for sending.
mxg