Well, after doing a simple
test (which you could have done too) groovy does indeed spit out the undesired XML. Obviously, this goes without saying, but
you should fix the back-end to support standards rather than hacking standards to support something broken.