How does JAXB work?
A. To build a JAXB application, start with an XML schema. The beta release requires that the schema language be W3C 2001 Recommendation for XML Schema. After obtaining an XML Schema, you build and use a JAXB application by performing these steps: Generate the Java source files by submitting the XML Schema to the binding compiler. You can use custom binding declarations to override the default binding of XML Schema components to Java representations Compile the Java source code. With the classes and the binding framework, write Java applications that: Build object trees representing XML data that is valid against the XML Schema by either unmarshalling the data from a document or instantiating the classes you created. Access and modify the data. Optionally validate the modifications to the data relative to the constraints expressed in the XML Schema Marshal the data to new XML documents.