Gulp plugin to validate XML.
$ npm install gulp-xml-validator --save-dev
// Gulpfile.mjs
import gulp from 'gulp';
import { xmlValidator } from 'gulp-xml-validator';
gulp.task('lint', done => {
gulp.src('**/*.xml')
.pipe(xmlValidator());
done();
});
Gulpfile
.
Type: string
Default: "text/xml"
Allows modifying the MIME type passed to DOMParser().parseFromString()
.
This work is licensed under The MIT License.