Using JAXB

This chapter provides instructions for using the sample Java applications that are included in the <javaee.tutorial.home>/examples/jaxb directory. These examples demonstrate and build upon key JAXB features and concepts. It is recommended that you follow these procedures in the order presented.

After reading this chapter, you should feel comfortable enough with JAXB that you can:

The primary goals of the Basic examples are to highlight the core set of JAXB functions using default settings and bindings. After familiarizing yourself with these core features and functions, you may wish to continue with Customizing JAXB Bindings for instructions on using Customize examples that demonstrate how to modify the default JAXB bindings. Finally, the Java-to-Schema examples show how to use annotations to map Java classes to XML schema.


Note: The Purchase Order schema, po.xsd, and the Purchase Order XML file, po.xml, used in the Basic and Customize samples are derived from the W3C XML Schema Part 0: Primer (http://www.w3.org/TR/xmlschema-0/), edited by David C. Fallside.