Validate XML like a pro.
- Makefile 47.9%
- Java 35.8%
- Dockerfile 16.3%
| src | ||
| Containerfile | ||
| LICENSE | ||
| readme.md | ||
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.