PHPackages                             eclipxe/xmlschemavalidator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. eclipxe/xmlschemavalidator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

eclipxe/xmlschemavalidator
==========================

PHP Library for XML Schema Validations

v3.0.6(2mo ago)14300.9k—1%57MITPHPPHP &gt;=7.3CI passing

Since Jun 20Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/eclipxe13/XmlSchemaValidator)[ Packagist](https://packagist.org/packages/eclipxe/xmlschemavalidator)[ Docs](https://github.com/eclipxe13/XmlSchemaValidator)[ RSS](/packages/eclipxe-xmlschemavalidator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (18)Used By (7)

eclipxe/XmlSchemaValidator
==========================

[](#eclipxexmlschemavalidator)

[![Source Code](https://camo.githubusercontent.com/481f8d72075aa4e8532108eedcb3eeda8786812a920bc9c5ec4e60b81392b325/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d65636c6970786531332f586d6c536368656d6156616c696461746f722d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/eclipxe13/XmlSchemaValidator)[![Latest Version](https://camo.githubusercontent.com/220178999acf4fff71444073aa42ccd69dd72e4c304c0cef520af7ca106358dc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f65636c6970786531332f586d6c536368656d6156616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://github.com/eclipxe13/XmlSchemaValidator/releases)[![Software License](https://camo.githubusercontent.com/feeb510c16e83a666971a69ffee3dfb13eea15b62c712f3d6601c74799892869/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f65636c6970786531332f586d6c536368656d6156616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://github.com/eclipxe13/XmlSchemaValidator/blob/main/LICENSE)[![Build Status](https://camo.githubusercontent.com/71abf85e4a55f92463f5c182763167b36e1f44b9dd42cb373def3ac2d9e036be/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f65636c6970786531332f586d6c536368656d6156616c696461746f722f6275696c642e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://github.com/eclipxe13/XmlSchemaValidator/actions/workflows/build.yml?query=branch:main)[![Scrutinizer](https://camo.githubusercontent.com/2030a2178c9cbcaf96ff2cb954646924b0cdb44a615083b43746386d466906df/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f65636c6970786531332f586d6c536368656d6156616c696461746f722f6d61696e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/eclipxe13/XmlSchemaValidator/)[![Coverage Status](https://camo.githubusercontent.com/d3de826a906a2ddd1fd86d456b481eb2004d84cd40d10222b6cbdbc1e66a5ee0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f65636c6970786531332f586d6c536368656d6156616c696461746f722f6d61696e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/eclipxe13/XmlSchemaValidator/code-structure/main)[![Total Downloads](https://camo.githubusercontent.com/3ee341f850889a7c53e067fa732814d1ac5c74566e8bd9e99af62b11ac0ebf65/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65636c697078652f786d6c736368656d6176616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eclipxe/xmlschemavalidator)

This is a library to validate XML files against multiple XSD Schemas according to its own definitions.

The way this works is:

1. Receive a valid xml string as the content to be evaluated.
2. Scan the file for every schemaLocation.
3. Compose a schema that include all the schemas.
4. Validate the XML against the composed file.

Installation
------------

[](#installation)

Use [composer](https://getcomposer.org/), so please run:

```
composer require eclipxe/xmlschemavalidator
```

Basic usage
-----------

[](#basic-usage)

```
