I have Email application. Currently I store all the data in MySQL database. I want to store data periodically in local file in XML or JSON format. So, when there is no database connection, I can use this local file to open and manage application locally.
I have Class Entity for each table of the database in my application and I retrieve all the data from database to Class object List.
I want to store information of email, contact and calendar in local file.
I want functionality to add/Update/delete emails, contact and calendar in local file.
Can anybody suggest me which option should I use? XML or JSON?