Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

idleberg/gulp-xml-validator

Repository files navigation

gulp-xml-validator

Gulp plugin to validate XML.

License Version Build

Installation

$ npm install gulp-xml-validator --save-dev

Usage

// Gulpfile.mjs
import gulp from 'gulp';
import { xmlValidator } from 'gulp-xml-validator';
gulp.task('lint', done => {
 gulp.src('**/*.xml')
 .pipe(xmlValidator());
 done();
});

Important

This plugin is now pure ESM. Read how to migrate your Gulpfile. Alternatively, you can continue using an unsupported 1.x version.

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.

Sponsor this project

Packages

No packages published

Contributors 3

AltStyle によって変換されたページ (->オリジナル) /