for filename in *.sld
do
echo $filename
xml val --err --xsd ../../00_sld_check_script/sld_schemas/1-0/StyledLayerDescriptor.xsd $filename >> errors.txt
done;
cat errors.txt;
Check XML files against Schema Definition (XSD)
General
SLD
Linux
XML

- Checks any XML file types with a given file extension and validate them against the schema definition file (XSD).
- The xmlstarlet package must be installed for the “xml val” command.

Description :

Example :

2025 Aug