I agree that XML is not ideal (if I were to redo it now I’d choose JSON instead).
However: the whole point of an XML or JSON layout is to build tools on top of it (like Google did with the Android XML layout files). Tools that are intended to be used by designers, not coders. The whole point of having an editor.
This is why I’m a bit skeptical with Groovy: it is powerful mostly for programmers.
Ops! Sorry for keeping up the hijiacking