libero/xml-validator

This package is abandoned and no longer maintained. No replacement package was suggested.

XML validator

v0.2.1 2019-03-06 13:35 UTC

This package is auto-updated.

Last update: 2020-02-06 17:17:12 UTC


README

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

CompositeValidator

Runs multiple validators and combines their results.

DtdValidator

Validates against the Document Type Definition (DTD).

DummyValidator

Always produces the configured result. Useful for testing.

RelaxNgValidator

Validates against a RELAX NG schema.

SchematronValidator

Validates against Schematron (using XSLT 1.0), which may be embedded inside a RELAX NG schema or an XML Schema Definition.

XmlSchemaValidator

Validates against an XML Schema Definition (XSD).

Getting help