Without the alias, the XML root element is the class name and is ugly too. I can use this, root ... whatever you like. I don't know how hard it is to use the resource name, I agree it would be ideal, but modifying the SimpleObject (by adding a new map with a single entry at the root) will break the JSON we are returning, therefore we need to find a way to modify it only when XML is to be produced.