-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Welcome to the FSValidator wiki!
FSValidator is a simple java implemented cmd based utility used for validating large numbers of XML files against a specific xsd schema.Those files should be located in local filesystem.
The latest jdk should be installed from here
Edit the following attributes in the configure.properties file:
validation.folder.destination="the output folder path"
validation.xsd.url=url to xsd
validation.report.mode=true|false
validation.report.extended=true|false
log.file.path=path to log folder
Depending on the operating system of your machine open cmd (for Windows) a bash command program(for linux),change to directory where FSValidator.jar is located and enter the following:
java -jar FSValidator.jar
When the FSValidator completes its run in the destination folder path given in previous step will be created a folder named VALID and a folder named INVALID that contain the relative XML files.If you have chosen the FSValidator to create a report you can find it in the destination folder.
Tip: For large numbers of XML files on the command above you should add the argument Xmx and define the maximum size of heap size that should be used by the java virtual machine like this:
java -Xmx4096m -jar FSValidator.java
The validation report created as a result of FSValidator contains info only for the invalid files.At the tail of the report you can also see some general information like the following:
Total parsed files:9169
Total time (ms):16475
Number of valid records:6056
Number of invalid records:3113
DATE---REPONAME---SCHEMA_LOCATION---RECORDSNUM---DURATION---VALIDFILESNUM---INVALIDFILESNUM