What Is JAXB - Java Architecture for XML Binding

Q

What is JAXB - Java Architecture for XML Binding?

✍: FYIcenter

A

Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java classes to XML representations. JAXB provides two main features: the ability to marshal Java objects into XML and the inverse, i.e. to unmarshal XML back into Java objects. In other words, JAXB allows storing and retrieving data in memory in any XML format, without the need to implement a specific set of XML loading and saving routines for the program's class structure.

JAXB API is designed to support three primary operations:

  • The unmarshalling of an XML document into a tree of interrelated instances of both existing and schema-derived classes,
  • The marshalling of such content trees back into XML documents, and
  • The binding, maintained by a binder, between an XML document representation and content tree. The unmarshalling process has the capability to check incoming XML documents for validity with respect to the schema.

JAXB - Java Architecture for XML Binding

JAXB API specifications are developed under the JCP (Java Community Process) as JSR (Java Specification Requests) 31 for JAXB 1.0, and JSR 222 for JAXB 2.0.

For more information on JAXB API specifications, see JSR 222: Java Architecture for XML Binding (JAXB) 2.0.

 

JAXB 2 Architectural Components

JAXB (Java Architecture for XML Binding) API Specification

JAXB (Java Architecture for XML Binding) API Specification

⇑⇑ FAQ for jaxb-*.jar - Java Architecture for XML Binding

2010-01-04, 7684🔥, 0💬