xstreamyou can do that by overriding the default marshaller. import org.springframework.oxm.xstream.XStreamMarshaller; importXStream is a simple library to serialize objects to XML and back again. Features. Ease of use. A hh level facade is supplied that simplifies common use cases. No mappings required. Most