XML 2003 logo

Inside XMLBeans

Abstract

XMLBeans provides XML types in Java. In other words, it is a W3C XML schema compiler and a Java library that turns the full XML Schema spec into an XML programming language for Java. Its novel approach of binding full-fidelity XML to compiled Java APIs makes XML manipulation in Java simultaneously easy, fast, robust, interoperable, and complete.

This paper is an in-depth examination of the XMLBeans project. It is currently in incubation in Apache, and available as a standalone compiler and library.

We compare the XMLBeans approach to other XML APIs, and we will also explain how XMLBeans works with core XML data type challenges such

as annotated data, schema evolution, wildcards, substitution, restriction, and complex content models. These kinds of type system constructs

traditionally make it difficult for to bind XML data faithfully and robustly to programming languages such as Java.

We will explain the suprisingly easy-to-use and robust solutions provided by the XMLBeans approach. We will give a brief overview of how to use XMLBeans as well as a survey of XMLBeans architecture.

Keywords