Example: @XmlAttributes marshaled as XMLElements
If you are returning a book on the JAX-RS method and you don't want to (or can't) pollute your JAXB classes with RESTEasy annotations, add the annotation to the JAX-RS method: @Mapped(attributeAsElements={"title"}) @GET public Book getBook(...) {...} If a Book is your input then you put it on the parameter: @POST public void newBook(@Mapped(attributeAsElements={"title"}) Book book) {...}