Force @XmlAttributes to be marshaled as XMLElements
Besides mapping XML to JSON namespaces, you can also force @XmlAttribute's to be marshaled as XMLElements. @Mapped(attributeAsElements={"title"}) @XmlRootElement(name = "book") public class Book {...}