function convertToXml(versioningConfiguration) {
    const xml = [];

    xml.push('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',
             '<VersioningConfiguration ' +
                'xmlns="http://s3.amazonaws.com/doc/2006-03-01/">'
    );

    if (versioningConfiguration && versioningConfiguration.Status) {
        xml.push(`<Status>${versioningConfiguration.Status}</Status>`);
    }

    if (versioningConfiguration && versioningConfiguration.MfaDelete) {
        xml.push(`<MfaDelete>${versioningConfiguration.MfaDelete}</MfaDelete>`);
    }

    xml.push('</VersioningConfiguration>');

    return xml.join('');
}
Convert Versioning Configuration object of a bucket into xml format.
@param {object} versioningConfiguration - versioning configuration object
@return {string} - the converted xml string of the versioning configuration