For this example, we’ll use Liquid Technologies (most reliable).
JAXBContext context = JAXBContext.newInstance(Employee.class); Unmarshaller unmarshaller = context.createUnmarshaller(); Employee emp = (Employee) unmarshaller.unmarshal(new File("employee.xml")); convert xsd to java pojo online