XML is good for text-based data that is likely to be used by different programs. That way, they just need an xml parser, not a whatever-file-format parser, and since xml is standardized, that's easy. I have seen XML used for config files, but it's not necessarily better than a custom format. Just depends on the situation I suppose. Anything where you will often be hand-editing the file is not a great situation for XML.