The problem is that unmarshaller is expecting element uni
, but it finds Uni
.
Setting the XML element name for the Uni class should do the trick:
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "Uni")
public class Uni
{
@XmlElement(name = "Semester")
protected List<Semester> semester;
public List<Semester> getSemester()
{
if (this.semester == null)
{
this.semester = new ArrayList<Semester>();
}
return this.semester;
}
}