@echo off REM If the xml file correctly specifies the location of an xsd document, REM that xsd will be used, and the one you specify on the command line REM will be ignored (as will any namespace you specify on the command line). REM REM If the xml file doesn't specify a schema or refers to a schema file that REM doesn't exist the xsd file and namespace if any from the command line will REM be used. If the xml file specifies a namespace (or the xsd specifies a REM target namespace) you must provide that namespace on the command line. REM setlocal if "%1" == "" goto Usage java -ea -classpath "%~dp0..\lib\cipres\cipres-classpath.jar" -Dxml=%1 -Dxsd="%~dp0..\share\cipres\resources\registry.xsd" -Dns="http://www.phylo.org/registry" org.cipres.util.XmlValidator goto Exit :Usage echo valdateRegistryXML xml_filename :Exit