/xml-validator

PHP XML validator

Primary LanguagePHPMIT LicenseMIT

PHP XML Validator

Build Status

This is a library for validating XML against one or more schemas.

Getting started

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.

Implementations

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).

Getting help