XSD Tutorials - Herong's Tutorial Examples - v5.23, by Herong Yang
Archived: Xerces2 Java 2.11.0 XML Schema 1.1 Beta
This section provides a tutorial example on downloading and installing Xerces2 2.11.0 beta to support XSD 1.1.
Since the Xerces2 version included in JDK does not support XML Schema 1.1, So if you want to play with XSD 1.1 features, you need to install the Xerces2 Java 2.11.0 XML Schema 1.1 Beta version on your local computer. Here are the steps:
1. Go to the Xerces2 Java Parser home page: http://xerces.apache.org/xerces2-j/.
2. Click the menu link "Download", then click the "Binary Distributions" link.
3. Click the "Xerces2 Java 2.11.0 (XML Schema 1.1) (Beta) - zip" link to start the download.
4. Save the downloaded file to \temp\Xerces-J-bin.2.11.0-xml-schema-1.1-beta.zip.
5. Unzip \temp\Xerces-J-bin.2.11.0-xml-schema-1.1-beta.zip, then move and rename the resulting directory to \local\xerces-2_11_0-xml-schema-1.1-beta.
6. Locate the JAR file \local\xerces-2_11_0-xml-schema-1.1-beta\xercesImpl.jar to make sure that the installation was done correctly.
For comparison reason, I also downloaded and installed the regular version of Xerces 2.11.0 in \local\xerces-2_11_0.
Table of Contents
XML Editor and Schema Processor - XMLPad
Java API for XML Processing - JAXP
JAXP - XML Schema (XSD) Validation
Xerces2 Java Parser - Java API of XML Parsers
Introduction of XSD Built-in Datatypes
"string" and Its Derived Datatypes
"decimal" and Its Derived Datatypes
"dateTime" and Its Related Datatypes
Miscellaneous Built-in Datatypes
Facets, Constraining Facets and Restriction Datatypes
"simpleType" - Defining Your Own Simple Datatypes
Identity-Constraints: unique, key and keyref
Assertion as Custom Validation Rules
XML Schema Location and Namespace in XML Documents
Overriding Element Types in XML Documents
Linking Multiple Schema Documents Together
►Archived: Xerces2 Java 2.11.0 XML Schema 1.1 Beta
Archived: Running XMLReaderValidator with Xerces2 2.11.0 Beta