
Ralf Lammel wrote:
XML... I wonder whether they discuss it...
yoann padioleau wrote:
Yes, fowler mentionned XML: "XML has its uses, but isn't exactly easy to read..." I dont think XML is a good idea for files that are managed/edited by humans.
It can be very human readable if set up properly. I once set up a configurations system like that for a large C++ app. The config files are very readable, and easy to edit using widely available free XML editors. For example, in the configuration file you have things like: <Age>25</Age> <Gender>F</Gender> <Location> <City>Cleveland</City> <State>Ohio</State> </Location> etc. With the source code, there is a master XML document that sets up the fields: <data name="Age" type="Int"/> <data name="Gender" type="enum"> <choice>F</choice> <choice>M</choice> </data> <category name="Location"> <data name="City" type="String"/>