Root element name in collections returned by RESTEasy
问题 I'm using JAX-RS via RestEasy in JBoss AS 6. When my JAX-RS resource returns a collection of items (e.g. via a List), RESTEasy always uses the name collection as the root element. E.g. <collection> <item> <description>computer</description> <price>2500</price> </item> <item> <description>tv</description> <price>1500</price> </item> </collection> This XML is generated by e.g.: @Produces("application/xml") @Path("xml") @RequestScoped public class MyResource { @GET @Path("myitems") public List