JAXB stands for Java architecture for XML binding .It is a standards specification which supports type mapping and helps in mapping Java to XML and vice versa. JAXB is a binding tool between XML and Java and provided a higher level of abstraction to work with.The reference implementation of JAXB can be seen at https://jaxb.dev.java.net.
A good way of working with JAXB is to think of Java classes representing the XML instances. The scalar data types are mapped as java data types and the complex data types are mapped to object references.
JAXB comes with basic set of tools which help in this mapping:
- xjc - compiler to generate the Java classes from the given XML schema definition.
- schemagen - Generator to generate the XML schema definition for the given Java classes.