If I convert multiple files into xml, here a example:
convert: {
options: {
explicitArray: false,
},
json2xml: {
options: {
xml: {
headless: false,
header: true,
}
},
files: [{
expand: true,
src: ['package.json', 'bower.json'],
dest: './',
ext: '.xml'
}]
},
The package.xml gets the xml header
<?xml version="1.0" encoding="UTF-8"?>
but bower.xml is missing the header.
Is this an bug or a feature, which I do not understand?
If I convert multiple files into xml, here a example:
The package.xml gets the xml header
but bower.xml is missing the header.
Is this an bug or a feature, which I do not understand?