Generate Java class from XML file, using XStream
问题 I have many xml files and I would like to use XStream to manage them. Is it possible to generate java classes corresponding to my xml files using XStream? 回答1: XStream is a software to serialize and deserialize a Java Object to and from XML. XStream uses Reflection for this. The class of the objects involved has to exist beforehand. JAXB is a binding framework, which too does serialization and deserialization. JAXB has annotations to do this work. Bundled with the framework come tools to