doowb / grunt-convert

Grunt task to convert to or from JSON, YAML, XML, PLIST or CSV.
MIT License
84 stars 17 forks source link

Converting multiple files json2xml result in missing XML header on second and subsequent files #42

Open dpalic opened 9 years ago

dpalic commented 9 years ago

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?

dpalic commented 9 years ago

any updates on this?

jonschlinkert commented 9 years ago

yes, I've refactored the entire underlying, lib. just need to finish unit tests and I'll push it up and merge it over as soon as I get a chance...

thanks for your patience!

dpalic commented 9 years ago

Hello jon,

do you have any updates? we can test your changes, but we need your sources to be able to do it.

dpalic commented 9 years ago

Hello Jon,

do you have any updates on this? As mentioned before, if you publish your changes, I could support you.

jonschlinkert commented 9 years ago

@dpalic sorry for delay.

if you publish your changes, I could support you.

that would be great, I'll try to review and push up in the next couple of days. thank you

dpalic commented 7 years ago

a happy new year! some time has passed. Any updates so far? if you provide us your changes in a branch we can help you on further developing. Or you tell us if you have given up the project, so we go on to search for alternatives.