I am trying to convert XML
String to
Java object using JaxB Unmarshall.
But when I print the values I am getting the null values.
I have tried values options like using annotation @XmlElement at field , getter and setter level.
Added @XmlAccessorType(XmlAccessType.FIELD).
Added constructor.
But nothing works.
This is my XML String I am trying to convert to Java object.
My Response java object is
My Unmarshalling code is
After executing the Xml2Object class I am getting the following output.
Can you please help to resolve the issue why null values were printed.