In this chapter we discussed how JAXB can be used to generate Java bindings for XML schemas. The functionality JAXB offers will be important to developers, because it alleviates the need to manually parse and validate XML structures to and from their representations in code.
We looked not only at how JAXB can be used as is, but also how it can be customized with binding declarations to tailor specific application requirements. From a design perspective, JAXB is a robust and standard API that provides a layer of abstraction over the handling of XML data types and constructs in Java code. There has long been a need for such a specification, and JAXB serves to fill that need quite aptly.