5.6 Sample Program that Uses the XML Schema

This section describes a sample program that uses an XML Schema.

The sample program is provided only in Windows.

The installation folder and file name of the sample program are as follows.

Installation folder:
installation-folder-of-Cosminexus-XML-Processor\samples\XMLSchema
File name:
  • purchaseOrder.xml
  • purchaseOrder-fail.xml
  • purchaseOrder.xsd
  • personalData.xsd
  • SampleValidateDOM.java
  • SampleValidateSAX.java
Organization of this section
5.6.1 Processing Performed by the Sample Program
5.6.2 XML Document to Use (purchaseOrder.xml and purchaseOrder-fail.xml)
5.6.3 Schema Documents to Use (purchaseOrder.xsd, personalData.xsd)
5.6.4 Sample Program When Using the DOM parser
5.6.5 Sample Program When Using the SAX Parser