University of Cincinnati logo and link  
JAXB Detailed
 
 

The Java API for XML Binding

UC ingot JAXB allows you to generate Java classes from XML schemas.  It also handles the marshalling and unmarshalling of data between the consumer and the producer.
 
  • Steps of JAXB Binding:
    1. Generate and compile classes from an XML Schema.
    2. Unmarshal XML documents into a tree of objects that are instances of the classes made in step 1.
    3. Validate source XML if requested.  Also validate any data to be marshalled into XML.
    4. The client can modify the content tree, and thus the HTML, with interfaces provided by the compiler.
    5. Marshal the resulting content tree back to XML.  Validate if necessary.
 Validation