I am using JAXB 2.0 for the Application Deveopment which is using RestFul Webservices . Now there is a modification in the request , that is i will be getting another filed/variable in the request XML .
<Root Id="567" att="758" />
Modified Request will be
<Root Id="567" att="758" anotherfiledadded ="kiran" />
My question is , is it possible to automatically append that field (anotherfiledadded)in the UserData class (Without modifying the UserData ??)
The below is my UserData class
@XmlRootElement(name = "Root")
@XmlAccessorType(XmlAccessType.FIELD)
public class UserData {
@XmlAttribute
private String Id;
@XmlAttribute
private String att;
// getters and setters