Hallo everyone,
by marshalling, is it possible to concate multiple XmlElements into only one XmlElement?
Code:
@XmlAccessorType(XmlAccessType.FIELD)
public class Customer {
@XmlTransient
private String start;
@XmlTransient
private String end;
@XmlElement
private String startend;
private List<PhoneNumber> phoneNumbers;
}
I would like to get only this xml output:
Code:
<startend>111222</startend>
111 is the value from start
222 is the value from end
Is there any possible to concate them? Ist there any solution by using XmlAccessType.FIELD?
Thank you for your help.
Regards,
Ratna