node package manager

gulp-xml2json

xml to json using gulp

gulp-xml2json

gulp plugin convert xml to json

Install with npm

npm install --save-dev gulp-xml2json
var gulp = require('gulp');
var xml2json = require('gulp-xml2json');
var rename = require('gulp-rename');
 
gulp.task('default', function () {
gulp.src('src/**/*.xml')
.pipe(xml2json())
.pipe(rename({extname: '.json'}))
.pipe(gulp.dest('dist'));
});

MIT @chilijung