code: public byte[] convertToXmlByteArray(BucketTaggingConfiguration config) throws SdkClientException {
  
          XmlWriter xml = new XmlWriter();
          xml.start("Tagging");
  
          for (TagSet tagset : config.getAllTagSets()) {
              writeRule(xml, tagset);
          }
  
          xml.end();
  
          return xml.getBytes();
      }
docs: /*
  <Tagging>
  <TagSet>
  <Tag>
  <Key>Project</Key>
  <Value>Foo</Value>
  </Tag>
  <Tag>
  <Key>User</Key>
  <Value>nschnarr</Value>
  </Tag>
  </TagSet>
  </Tagging>