xstreamXStream.setupDefaultSecurity(this); to be removed after 1.5 xstream.allowTypesByWildcard(new String[] { com.your.package.** So essentially, you willI am using xstream and trying to serialize a List to XML. I need an output structure like Employees> Employee>Employee> Employee>Employee>