I am quite sure, this is one of the many duplicated questions around XML to Java Object conversions.
But I started this thread since I couldn\'t find simpler or looking for
Basically you want to unmarshal your XML. Here's a detailed tutorial that describes how to use the JAXB xjc command to generate a Java class from XML Schema. A maven xjc plugin is also available for your convenience.