README
gulp-xml-validator
Gulp plugin to validate XML. Based on xmldom
and inspired by grunt-xml-validator.
Installation
# npm
$ npm install gulp-xml-validator --save-dev
# Yarn
$ yarn add gulp-xml-validator --dev
Usage
const gulp = require('gulp');
const xmlValidator = require('gulp-xml-validator');
// Gulp v4
gulp.task('lint', (done) => {
gulp.src('**/*.xml')
.pipe(xmlValidator());
done();
});
// Gulp v3
gulp.task('lint', function () {
return gulp.src('**/*.xml')
.pipe(xmlValidator());
});
License
This work is licensed under The MIT License