code: public String getXml() {
          try {
              return ((ByteArrayOutputStream) outputStream).toString(StandardCharsets.UTF_8.name());
          } catch (UnsupportedEncodingException e) {
              return outputStream.toString();
          }
      }
docs: Get the generated XML.
  
  @return The generated XML.