If you want a data/code serialization format that is
human readable and you are ready to drop the
use of an XML format (which is not very human readable by BTW)
you may find interesting to check out the perl
module YAML written Brian Ingerson.
YAML
YAML stands for YAML ain't a
markup-language. There are or will be a YAML module written
for other languages.
-- stefp