Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dpalic opened this issue Jun 17, 2015 · 6 comments

Comments

@dpalic
Copy link

dpalic commented Jun 17, 2015

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
Copy link
Author

dpalic commented Jul 22, 2015

any updates on this?

@jonschlinkert
Copy link
Collaborator

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
Copy link
Author

dpalic commented Aug 5, 2015

Hello jon,

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

@dpalic
Copy link
Author

dpalic commented Sep 16, 2015

Hello Jon,

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

@jonschlinkert
Copy link
Collaborator

@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
Copy link
Author

dpalic commented Jan 1, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants