I need to interact with a REST service that gives responses in XML. The structure of the XML document is as follows:
<RestcommResponse> <Clients> <Client> ... </Client> <Client> ... </Client> </Clients> </RestcommResponse> I use Spring with its RestTemplate class. Mapping with jackson-dataformat-xml. I would like to write the Client class, on the properties of which, using annotations, the elements of the Client node will be mapped, and in the RestTemplate response I will get a List. But the top two elements of the document bother me: RestcommResponse and Clients. How can you get around them?