Christian is right. The database gives you the best access time and allows you to change data in a very convenient way. XML may be a better idea in the case of tree data structures.
In my opinion, there are two questions:
- what data do you store?
- You allow the user to change this data (for example, in the application or using Notepad)
There is also 1 big downside to XML - it is ultimately plaintext. So everyone can read it. To prevent this, you will have to encrypt the data (and that means extra effort). In the case of XML, using marshaling methods (JiBX, Castor, JAXB) can be convenient and can also reduce memory consumption.
Please describe what data you store in the database so that we can respond better.
source share