|
FAQ
History |
|
Search
Feedback |
Using JAXB
Scott Fordin
This chapter provides hands-on instructions for using the Java Architecture for XML Binding (JAXB). Specifically, this chapter provides nine sample Java applications, each of which demonstrates and builds 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:
- Generate JAXB Java classes from an XML schema
- Use schema-derived JAXB classes to unmarshal and marshal XML content in a Java application
- Create a Java content tree from scratch using schema-derived JAXB classes
- Validate XML content during unmarshalling and at runtime
- Customize JAXB schema-to-Java bindings
The primary goals of the basic sample applications 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 four additional sample applications that demonstrate how to modify the default JAXB bindings.
Note: The Purchase Order schema,
po.xsd, and the Purchase Order XML file,po.xml, used in these samples are derived from the W3C XML Schema Part 0: Primer (http://www.w3.org/TR/xmlschema-0/), edited by David C. Fallside.
|
FAQ
History |
|
Search
Feedback |
All of the material in The Java Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.