The Utility\bin directory contains several .bat files for checking the validity of OAGIS XML files against their respective XML Schema definitions (.xsd files), and against their respective constraint rules. 

One set of .bat files is used to validate individual xml files. 

Another set checks the overall validity of the entire OAGIS BOD suite.

A third set checks an xml file against its respective constraint set.

All schema validation is done using one or more of the commonly available validating parsers: Xerces, MSXML, or XSV. (Oracle coming soon). Xerces and XSV are included in this distribution and can be used with no special effort, so long as you have java installed. MSXML 4.0 SP1 can be obtained from Microsoft, http://msdn.microsoft.com/xml, and must be installed prior to testing. For best results, make sure that you're running the most recent versions of Xerces (http://xml.apache.com) and XSV (http://www.ltg.ed.ac.uk/~ht/xsv-status.html).

Constraint checking is done with one of the provided XSL processors (Michael Kay's Saxon and Apache's Xalan)

For best results, place this directory in your PATH.


To validate that an individual BOD xml file conforms to its schema definition:

Open a command window and change to the xml file's directory, which is loacated at:
OAGIS\BODExamples

Use one of these commands:

runall <bodfilename>.xml             
runxerces <bodfilename>.xml         
runmsxml <bodfilename>.xml 
runxsv <bodfilename>.xml 
- runs all validating parsers 
- runs the Xerces parser
- runs the MSXML parser
- runs XSV, the XML Schema Validator


To use the OAGIS 8 regression tests:

Open the OAGIS/Utility/bin folder (or cd to it in a command window) and invoke the "validate.bat" file.

This will run the complete test suite of BOD instance examples through three validators:

Xerces - Apache's Schema Validating XML parser
MSXML4 - Microsoft
XSV - Henry Thompson's XML Schema Validator

Results will be placed in the folder OAGIS/Resources/BODExamples/_Results, in the files

regTestResultsXerces.txt
regTestResultsMSXML.txt
regTestResultsXSV.txt

Detailed messages from XSV are placed in 

OAGIS/Resources/BODExamples/_Results/XSVResults

To run this suite, use the validateNice.bat file, or enter 

validate NICE

on the command line.

To run the test suite through only on of the validators, enter/invoke one of these commands:

valXerces
valMSXML
valXSV

To check the constraints change to the OAGIS\BODExamples directory and run on of the following bat files:

val-const-saxon - Uses the instant Saxon XSL Processor to process all of the BOD constraints
val-const-xalan - Uses the instant Xalan XSL Processor to process all of the BOD constraints
val-constraints - runs both XSL processors against all of the BOD constraints.

The val-const-saxon.bat places the results in OAGIS\BODExamples\_Results\Constraints. To check for any errors, simply search these files for the word 
"failed" to find any failures.

Likewise, the val-const-xalan.bat places the results in OAGIS\BODExamples\_Results\Constraints-Xalan. Again, to chech for any errors search these files fr 
the word "failed" to find any failures.