My web service returns data in both xml and json using Spring MVC. For json, spring uses Jackson and XStream for XML. However, XStream uses fields for serialization while Jackson uses methods (setter/getter).
I would like to include all/some getter in xml serialization. How can this be accomplished via a custom converter or annotation?