const gulp = require('gulp')
const plugins = require('gulp-load-plugins')
const config = require('../config')
const fs = require ('fs')
var serializer = new (require('xmldom')).XMLSerializer;
var implementation = new (require('xmldom')).DOMImplementation;
const $ = plugins()
gulp.task('global-sitemap', () => {
var xmlArr = []
for(var i in config.environment.languages) {
var language = config.environment.languages[i]
xmlArr.push(('https:' + config.environment.baseUrl + '/' + language + '/sitemap-' + language + '.xml').replace('/en', ''))