code: public byte[] convertToXmlByteArray(DeleteObjectsRequest rq) throws SdkClientException {
          
          XmlWriter xml = new XmlWriter();
          xml.start("Delete");
          if ( rq.getQuiet() ) {
              xml.start("Quiet").value("true").end();
          }
          
          for (KeyVersion keyVersion : rq.getKeys()) {
              writeKeyVersion(xml, keyVersion);
          }
  
          xml.end();
  
          return xml.getBytes();
      }
docs: Converts the specified {@link DeleteObjectsRequest} object to an XML fragment that
  can be sent to Amazon S3.
  
  @param rq
  The {@link DeleteObjectsRequest}