What\'s the cleanest way to store an enum in XML and read it back out again? Say I\'ve got:
enum ETObjectType {ETNormalObjectType, ETRareObjectType, ETEssent
The great thing of XML is that it can transform to nearly anything, even to code. It just takes (a lot of) effort to make the translation once. I have worked in several projects where XML was translated to code. And this saved a lot of time. This technique is for instance, covered in chapter 12 of the book "XSLT Cookbook 2nd edition, S. Mangano, O'Reilley".
It's not an easy solution, but if you have a good mapping you - have a single point of definition (your xml) - can generate .h files with enum - can generate tables or functions to read/write values in xml
It depends on the number of enums and how often they change if it is worthwhile. Good luck!