Introduction JAXB defines many annotations that shape how Java classes map to XML Schema. This article documents the JAXB annotations that you will use most often and provides practical examples how to use them. This reference page is part of a series of articles on JAXB: Introduction to JAXB JAXB Validation XSLT with JAXB Schemagen – convert Java … Continue reading JAXB Annotations Reference
Introduction The xjc tool generates Java source code from an XML Schema. This article is a quick reference page to use xjc from both the command line and Maven. This reference page is part of a series of articles on JAXB: Introduction to JAXB JAXB Validation XSLT with JAXB Schemagen – convert Java classes to XML Schema Xjc – convert Xml … Continue reading xjc – Convert XML Schema to Java
Introduction The schemagen tool converts Java classes to a XML Schema. This article is a quick reference page to use schemagen from both the command line and Maven. This reference page is part of a series of articles on JAXB: Introduction to JAXB JAXB Validation XSLT with JAXB Schemagen – convert Java classes to XML Schema Xjc – convert Xml Schema … Continue reading schemagen – Convert Java classes to XML Schema
Introduction This tutorial explains how to transform Java classes using XSLT templates. XSLT is a language that transforms XML documents to another format, such as HTML, PDF or XML with different structure. JAXB lets you treat your Java objects as if they were XML documents. We can therefore leverage the existing javax.xml.transform APIs to transform … Continue reading XSLT with JAXB
Introduction This tutorial explains how to use JAXB validation. It first shows how to validate a JAXB object marshalled to XML. It then shows how to validate an XML message unmarshalled to a Java object. It finally explains how to leverage the javax.xml.validation API to validate a Java object against an XML Schema. This tutorial is part … Continue reading JAXB Validation
Introduction This tutorial gives an in-depth introduction to JAXB (Java Architecture for XML Binding). The purpose of this tutorial is to show to how to quickly convert Java objects to XML and vice versa. Later tutorials will explore more advanced concepts of JAXB, such as validation, XSLT or schema generation. What is JAXB? JAXB defines a standard … Continue reading Introduction to JAXB
An XML Schema defines the structure and vocabulary of an XML document. The W3C developed XML Schema to create a more powerful and expressive XML validation language than DTD.
The Document Type Definition (DTD) describes the vocabulary and structure of an XML document. The term vocabulary refers to the elements and attributes valid to the XML document. The term structure refers to how these elements and attributes are combined with each other.
XML stands for Extensible Markup Language. XML is a language that lets you create markup languages. That is, a language that uses tags to describe other languages (e.g. HTML, TeX or MathML). This page is part of a series of reference blog entries to understand XML and related technologies.