gulp-xml-validator
v4.0.0
Published
Gulp plugin to validate XML
Downloads
377
Maintainers
Readme
gulp-xml-validator
Gulp plugin to validate XML.
Installation
$ npm install gulp-xml-validator --save-devUsage
// Gulpfile.mjs
import gulp from 'gulp';
import { xmlValidator } from 'gulp-xml-validator';
gulp.task('lint', done => {
gulp.src('**/*.xml')
.pipe(xmlValidator());
done();
});[!NOTE] This package encourages the use of ESM. Read how to migrate your
Gulpfile.
Options
options.mimeType
Type: string
Default: "text/xml"
Allows modifying the MIME type passed to DOMParser().parseFromString().
License
This work is licensed under The MIT License.
