The Bulk Validator will validate combinations of XML instances against several types of schemas: XML Schema, ISO Schematron, Schematron 1.5, and RelaxNG. It can also perform XSLT transformations. There are three panels in the application, listed below from top to bottom:
- A table of schema files or XSLT transformations
- A table of XML instance files
- Validaton output
Validation is done by dragging onto the tables schemas and instance files. The application allows the user to arrange the schemas in a tree structure. This is useful where there are multiple schemas that an instance document must adhere to, and maybe one is a broader version of another. If the broader version fails validation, the more specific version will too.
Bulk Validator will validate instace/schema pairs once the "run" button is clicked. You can click on an instance/schema pair to see the validation results.
NOTE: Instructions on this page will refer to the files BulkValidatorApp*.jar and BulkValidatorEngine*.jar. The asterisk (*) is only a placeholder for your version of the jar files, and not intended to be a part of the file names.
- Download and extract the zip file for your operating system. There should be a BulkValidatorApp*.jar file, a BulkValidatorEngine*.jar, and a lib directory. The lib directory contains all dependent third-party libraries used by BulkValidatorEngine*.jar. Therefore, it is important that lib and BulkValidator*.jar are always in the same directory.
-
To launch the desktop application, double click the
BulkValidatorApp*.jar file. The application does require
Java to be installed on your system.
Mac users: Lauching the app via double click does not currently work. You must launch it via the Terminal. Navigate to the directory the downloaded files are, and type:java -XstartOnFirstThread -jar BulkValidatorApp*.jarWe recognize this is inconvenient, we are working to provide a double-clickable app soon! - From your file browser, drag XML instance files (.xml) onto the second panel from the top, and drag schema files onto the first panel from. ISO Schematron schemas must end in .sch, Schematron 1.5 schemas must end in .sch15, RelaxNG must end in .rng, and XML Schemas must end in .xsd. XSLT files end in .xml if they are to be treated as instance files, and must end in .xslt or .xsl if you want them to transform instance files. You can also drag-and-drop a directory (or directories) onto the window and all files contained in the directory will be recursively processed. If an recognized file type is detected, you will be asked if you would like to add it anyway.
- The validation of all schema/instance pairs will begin once the "Run" button is pressed. The progress bar will notify you when the validation is complete. Once complete, you can view the results from a XML instance & schema validation by clicking on a row in the schema table and a row in the instance table (at least one row from each table needs to be selected). The output is displayed in the bottom text panel.