﻿The UIP.XsdValidator.exe is a Windows console application to validate an xml file against an xsd schema file using the Microsoft implementation of the XSD Schema standards. This application requires version 4.0 of the dotnet framework.

This validator will validate correctly against the xsd schema used for UIP (Unfunded International Providers) application for the Ministry of Education.

The intended use of this application is for automated pre-validation of xml data intended for submission to the Ministry of Education UIP application. The application can be called from a command or bat file using the following syntax:

UIP.XsdValidator.exe [xml file name] [xsd file name]

Where the file name contains spaces, enclose the parameter in quotes ("").

In addition the following settings may be configured in the accompanying config file (<appSettings> section): 

1. logErrors (true/false) - determines whether errors (including failed validation) are logged to file
2. defaultTargetNamespace - specify the schema target namespace, if required, or an empty string. This has been initially set to http://Tertiary.test/Tertiary.xsd which is the required namespace for the UIP schema.

The application will return a value of 0 where the operation has been successful, or a non-zero error code where the operation has failed. In addition if the 'logErrors' configuration item is set to 'true' the error detail will be logged.

Copyright © Fronde Systems Group 2015