Should you use xml or sqlite3?

I just started development iOS is currently developing an application that simply reads data from the server and displays it on the screen. I am not sure whether to use XML or sqlite3 to store data. Which method should be preferred and why? thanks in advance.

+3
source share
3 answers

It is important to remember that these are two different things, suitable for different tasks. Choose the one that suits the problem. (In this case, I would most likely use XML or “plain text,” because it sounds like a simple boot cache. Either the raw response can be saved, or the data may already be converted to objects and then automatically serialized to XML or much more. In any case, keep it simple.)

XML ( ) - . XML- - (, ) . , "". XML , , , (, ). XML (, DOM) .

SQLite - , . () - , . SQLite , . SQLite (read: XML), .

.

+1

, , . , .., SQLite . -, , , , "" 10 , sqlite, , .

+1

, XML.

, XML sqlite .

If you want to receive from the server, as well as for its local storage, first use XML to retrieve the data, and then use sqlite for local storage.

and look at @pst's answer, what is the difference between the two.

0
source

All Articles