XSD Object Translator is capable to create Java classes from XSD files. And the classes created reflects the objects structure of valid XML files, in accordance with the XSD files. This way, this objects can to be serialized to XML and back with XStream.