Validate XML like a pro.
  • Makefile 47.9%
  • Java 35.8%
  • Dockerfile 16.3%
Find a file
2025-10-08 02:18:14 +02:00
src Implement build instructions 2025-10-08 01:25:05 +02:00
Containerfile Implement container build 2025-10-08 01:25:18 +02:00
LICENSE Specify license: MIT 2025-10-08 01:30:08 +02:00
readme.md Document usage 2025-10-08 02:18:14 +02:00

XML Schema Validation

A OCI container to check whether a XML fits to a XSD schema.

Supports W3C XML Schema Definition Language (XSD) 1.1.

Run

# download
docker image pull code.netztechniker.at/ludwig/formspiel:latest

# run
docker container run \
    --rm \
    --interactive --tty \
    --volume=.:/data \
    code.netztechniker.at/ludwig/formspiel:latest \
        schema1.xsd \
        schema2.xsd \
        file-to-validate.xml

# or the short variant
docker run --rm -it -v .:/data code.netztechniker.at/ludwig/formspiel:latest schema1.xsd schema2.xsd file-to-validate.xml

Known Issues

  • does not support reading the XML from stdin
  • error report format is unspecified and not optimal

Acknowledgements

The XML functionality is based on Apache Xerces2 Java XML Parser. The wrapper code is mostly copied from innodatalabs/xsd-validator.