Right now changes made by a user will always be
saved, to ensure the data from the xml file stays
syncronised with the files stored in the project folder.
A way to solve this problem, in case a user don't want
to save is:
Existing xml data:
A. tempory save file
B. save file
New xml data:
1. Always store a list of newly added xml data.
2. Always store a list of deleted xml data.
3. Always store a list of changed xml data.
When a user saves the project:
-delete all files pointed in the second list.
-overwite the save file with the tempory save file
-delete the tempory save file, and the 3 new xml files
And when a user don't change the project:
-delete all files pointed in the first list
-if album names are changed rename them back (3rd
list)
-delete the tempory save file, and the 3 new xml files