xml-linter
Lint any kind of XML file, can accept an XSD definition file.
Install
Available here and on packagist
Usage
Some tests are available (requires dev
dependencies):
# Invalid file
$ ./xml-linter ./vendor/symfony/translation/Tests/fixtures/invalid-xml-resources.xlf
# Valid file
$ ./xml-linter ./vendor/symfony/translation/Tests/fixtures/resources.xlf
Installing it as a dependency of your project will automatically move the binary vendors/bin
folder.
Contribute ?
No thanks, I keep it as simple and stupid as possible.