xValid (short from XML Validator) is a simple CLI utility for validating XML documents against XML Schema 1.1.
Note: xValid is just convenient CLI wrapper around Xerces2. For production use it is recommended to use Xerces2 directly.
Download and unpack the latest release.
xValid requires Java version 11 or newer installed.
Usage: xvalid SCHEMA DOCUMENT
Validate DOCUMENT against SCHEMA using XML Schema 1.1 and report the result.
Windows:
.\bin\xvalid.bat schema.xsd document.xml
macOS, Linux and other Unix like systems:
./bin/xvalid schema.xsd document.xml
This software uses third party libraries. For more information read the NOTICE file.
Copyright (c) Plamen Totev.
Licensed under the MIT license.