 | Level: Intermediate Nicholas Chase (nicholas@nicholaschase.com), Author
16 Jul 2002 XML Schema provides validation capabilities that weren't available with Document Type Definitions. Xerces-Java 2.0 provides virtually complete support for the W3C's XML Schemas, and beyond. This tutorial guides you through the process of using schema validation with Xerces-Java 2.0.
Prerequisites
Familiarity with XML and Java technology is required, but the tutorial covers the basics of the W3C XML Schema recommendation, so while it is helpful, no previous XML Schema knowledge is required. For basic XML information, see the XML programming in Java tutorial. An understanding of XML namespaces is also helpful. You can find basic background in the Understanding DOM tutorial. Make sure that the following tools are installed and tested before beginning the tutorial.
- A Java Virtual Machine, such as the IBM Java machine or Sun's JDK 1.3 or higher must be installed and working on the target machine. You can find links to JVMs for various platforms in .
- The Xerces-Java 2.0 binary files: Apache provides precompiled files, so you don't need the source files. Download the binaries.
- A plain text editor for creating Java technology applications. If you choose to use an IDE such as VisualAge instead, make sure that the Xerces *.jar files are on the classpath, and that they precede any other XML APIs.
System requirements
You will need JavaScript enabled on your browser.
Duration
Under one hour
Formats html, pdf
|  | |  |