xstreamyou can do that by overriding the default marshaller. import org.springframework.oxm.xstream.XStreamMarshaller; importyou can do that by overriding the default marshaller. import org.springframework.oxm.xstream.XStreamMarshaller; import