You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
445 B

#!/bin/bash
script_dir="$(dirname "$(readlink -f "$0")")"
cd $script_dir
schema_dir=../resources/schema
example_dir=../examples
for example_subdir in $example_dir/*
do
base=${example_subdir##*/}
schema=$schema_dir/$base.xsd
for example_file in $example_subdir/*.xml
do
command="xmllint -schema $schema $example_file --noout"
echo $command
if ! $command; then
exit 1
fi
done
done