xstreamyou can do that by overriding the default marshaller. import org.springframework.oxm.xstream.XStreamMarshaller; importThe complete source for XStream is bundled in the -src archive. This includes: Main API [xstreamsrcjava] Unit Tests [xstreamsrctest] Maven Build Files [pom.xml] Hibernate Module