I am rendering a command class as XML via
render foo as XML
where foo is an instance of the command class.
This successfully returns an XML for the objects value. However, the generated XML also contains a class element, e.g., my.package.ClassNameOfCommandObject
This also happens when I do the same for a standard domain class, as well as when I use the encodeAsXML() method of the command object.
How can eliminate the element from the generated XML?