function tagsToXml(tags) {
    const xml = [];

    xml.push('<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Tagging> <TagSet>');

    tags.forEach(tag => {
        xml.push('<Tag>');
        xml.push(`<Key>${escapeForXml(tag.Key)}</Key>`);
        xml.push(`<Value>${escapeForXml(tag.Value)}</Value>`);
        xml.push('</Tag>');
    });

    xml.push('</TagSet> </Tagging>');

    return xml.join('');
}
Convert Versioning Configuration object of a bucket into xml format.
@param {array.<Tag>} tags - set of bucket tag
@return {string} - the converted xml string of the versioning configuration