| This Chapter | |
| - | Chapter 11: Java Architecture for XML Binding |
| - | Introduction to JAXB |
| - | Marshalling Java Objects |
| - | Unmarshalling |
| - | Summary |
Java 6 includes the reference implementation for Java Architecture for XML Binding (JAXB) 2.0, which is defined in JSR 222 (http://jcp.org/en/jsr/detail?id=222). The API can be found in the javax.xml.bind package and its subpackages. JAXB 2.0 offers support for binding Java to XML, with the help of the annotation types in the javax.xml.bind.annotation package. Unlike JAXB 1.0 that can only convert XML to Java, JAXB 2.0 supports Java-to-schema binding as well.
This chapter presents a brief tutorial on JAXB for the uninitiated and provides an example on the new features in JAXB 2.0