Skip to main content


developerWorks  >  XML | Java technology  >

XML Schema validation in Xerces-Java 2

developerWorks

Level: Intermediate

Nicholas Chase (nicholas@nicholaschase.com), Author

16 Jul 2002

Register now or sign in using your IBM ID and password.

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


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


Learn and share!

Exchange know-how with your peers -- try our new Pass It Along beta app