When is a good idea to save information in a XML file and when in a own-format file?
For XML (or other standard) I see:
- (+) Standard format.
- (-) It’s tedious to hand modify.
For own-format files I see:
- (-) We need to build a own-parser (non-standard).
- (+) It can be easy to hand modify the files.
Use XML when it’s a good fit in various ways:
Basically if there’s a pretty natural representation of your data model in XML, that may well be the easiest way of handling it. If you’d end up having to mess around a lot to fit it in with XML, think about other formats. Note that there are plenty of other standard (or ‘somewhat standard’ – e.g. supported by tools on multiple platforms) formats available beyond just XML.