diff --git a/docs/examples/validate.sh b/docs/examples/validate.sh index c4eefea..7738b2d 100755 --- a/docs/examples/validate.sh +++ b/docs/examples/validate.sh @@ -2,6 +2,7 @@ SCHEMAURL='http://www.fdsn.org/xml/station/fdsn-station-1.1.xsd' SCHEMA='fdsn-station-1.1.xsd' +IRIS_VALIDATOR='stationxml-validator-1.7.1.jar' if [[ ! -r 'xmlvalidator/ValidateStationXml.class' ]] then @@ -52,3 +53,11 @@ else fi fi fi + +# run iris content validator +if [[ -e $IRIS_VALIDATOR ]] +then + java -jar $IRIS_VALIDATOR --input $1 +else + echo "IRIS stationxml-validator not found" +fi