Using Xerces2 Java APIs

This chapter provides notes and tutorial examples on Xerces2 Java Parser API. Topics include validating sample XML files with assigned XML Schema files (XSD) with XMLReader and SAXParser classes in Xerces2; Testing default SAXParser implementation in JDK; Validating XSD 1.1 schema with Xerces2 JAR files.

JAXP, DOM and SAX APIs in Xerces2 JARs

XML Schema (XSD) Validation using XMLReader

Running XMLReaderValidator on XSD 1.1 Schema

XML Schema (XSD) Validation using SAXParser

SAXParser for XSD Validation Fixed

SAXParser for XSD 1.1 Validation for XSD 1.1 Validation XSD 1.1 Test Result


Table of Contents

 About This Book

 Introduction to XML Schema

 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

Using Xerces2 Java APIs

 XML Schema Language - Basics

 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

 Complex Element Declaration

 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 Tutorials


 Full Version in PDF/EPUB