Skip to content

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

Description

@dpalic

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions