Download the PHP package eclipxe/xmlschemavalidator without Composer
On this page you can find all versions of the php package eclipxe/xmlschemavalidator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eclipxe/xmlschemavalidator
More information about eclipxe/xmlschemavalidator
Files in eclipxe/xmlschemavalidator
Package xmlschemavalidator
Short Description PHP Library for XML Schema Validations
License MIT
Homepage https://github.com/eclipxe13/XmlSchemaValidator
Informations about the package xmlschemavalidator
eclipxe/XmlSchemaValidator
This is a library to validate XML files against multiple XSD Schemas according to its own definitions.
The way this works is:
- Receive a valid xml string as the content to be evaluated
- Scan the file for every schemaLocation
- Compose a schema that include all the schemas
- Validate the XML against the composed file
Installation
Use composer, so please run
Basic usage
Advanced usage
Exceptions
This library creates its own specific exceptions and all of them implements XmlSchemaValidatorException
.
Check the exceptions' documentation for more information.
When this library uses LibXML functions, it captures the errors and throw its own exception.
Version 1.x is deprecated
Version 1.x is no longer on development. It has a problem of concerns, the same library try to solve two different issues: Validate an XML file and store locally a copy of the XSD files. Version 2.x breaks this problem and give this library only one propose: Validate an XML file against its multiple XSD files, it does not matter where are located.
Version 2.x is deprecated
Migration changes between version 2 and version 3
Version 2.x was compatible with PHP 7 and was deprecated on 2020-04-05.
A branch 2.x
has been created, it might be installable using composer require eclipxe/xmlschemavalidator:2.x-dev
,
but it will not be active maintained. You should change your dependency as soon as possible.
Contributing
Contributions are welcome! Please read CONTRIBUTING for details and don't forget to take a look in TODO and CHANGELOG files.
Copyright and License
The eclipxe/XmlSchemaValidator
library is copyright © Carlos C Soto
and licensed for use under the MIT License (MIT). Please see LICENSE for more information.
All versions of xmlschemavalidator with dependencies
ext-dom Version *
ext-libxml Version *