Working with XML in Java Using JAXB 2
JAXB is the standard Java API which bridges the gap between XML and Java objects. This course will teach you how to use JAXB, different approaches for working with XML schemas, integrating JAXB in your build process and using JAXB with webservices.
What you'll learn
As a software developer, it's important to have a thorough knowledge of how to work with XML, the well-known standard data format that is used in all kinds of applications. In this course, Working with XML in Java Using JAXB 2, you will learn how to use the Java Architecture for XML Binding (JAXB) effectively. First, you will learn about how to use the JAXB API to convert XML to Java objects and vice versa. Next, you'll explore how to work with XML schemas. Finally, you'll dive into using JAXB for working with web services. When you're finished with this course, you'll have a foundational knowledge of JAXB that will help you as you move forward to become an expert Java developer.
Table of contents
- Overview 2m
- Generating a Schema Using the Schemagen Tool 2m
- Generating a Schema Programmatically 2m
- Generating Named and Anonymous Types 3m
- Making Elements and Attributes Required 4m
- Specifying Default Values for Elements and Attributes 6m
- Making Elements Nillable 3m
- Distinguishing Between Absent and Nillable Elements 8m
- Summary 2m
- Overview 2m
- The Schema-first Approach 4m
- Generating Java Classes Using the Xjc Tool 7m
- Marshalling Using the Generated Java Classes 3m
- Customizing Bindings with the Schema-first Approach 5m
- Customizing Bindings for Schemas, Types, Elements, and Attributes 12m
- Customizing Bindings to Use Java 8 Date and Time Types 8m
- Customizing Bindings for Enums 6m
- Summary 2m