This is a library for validating XML against one or more schemas.
Using Composer you can install the coding standard into your project:
composer require libero/xml-validator
The core of this library is the XmlValidator
interface, which can be used to test the validity of a DOMDocument
.
Runs multiple validators and combines their results.
Validates against the Document Type Definition (DTD).
Always produces the configured result. Useful for testing.
Validates against a RELAX NG schema.
Validates against Schematron (using XSLT 1.0), which may be embedded inside a RELAX NG schema or an XML Schema Definition.
Validates against an XML Schema Definition (XSD).
- Report a bug or request a feature on GitHub.
- Ask a question on the Libero Community Slack.
- Read the code of conduct.