XSD Tutorials - Herong's Tutorial Examples - v5.23, by Herong Yang
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
Takeaways:
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