code: public String representData(TestSet testSet) {
          StringWriter sw = new StringWriter();
          PrintWriter pw = new PrintWriter(sw);
          pw.println("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"); // TBD: get
                                                                     // encoding
                                                                     // from
                                                                     // dumper
                                                                     // options
          Statuses statuses = this.getStatuses(testSet);
          pw.println("<testsuite failures=\"" + statuses.getFailures() + "\" "
                  + "time=\"" + statuses.getTime() + "\" errors=\""
                  + statuses.getErrors() + "\" " + "skipped=\""
                  + statuses.getSkipped() + "\" tests=\"" + statuses.getTests()
                  + "\" " + "name=\"" + this.name + "\">");
          // TBD: output TAP header, TAP plan as properties
          for (TapElement tapLine : testSet.getTapLines()) {
              if (tapLine instanceof TestResult) {
                  pw.println("<testcase time=\"0\" classname=\"" + this.name
                          + "\" name=\""
                          + ((TestResult) tapLine).getDescription() + "\">");
                  if (((TestResult) tapLine).getDirective() != null
                          && ((TestResult) tapLine).getDirective()
                                  .getDirectiveValue() == DirectiveValues.SKIP) {
                      pw.println("<skipped/>");
                  }
                  if (((TestResult) tapLine).getStatus() == StatusValues.NOT_OK) {
                      pw.println("<failure message=\""
                              + ((TestResult) tapLine).getDescription()
                              + "\" type=\"Failure\" />");
                  }
                  pw.println("</testcase>");
              }
              if (tapLine instanceof BailOut) {
                  pw.println("<testcase time=\"0\" classname=\"" + this.name
                          + "\" name=\"" + ((BailOut) tapLine).getReason()
                          + "\">");
                  pw.println("<error message=\""
                          + ((BailOut) tapLine).getReason()
                          + "\" type=\"BailOut\"/>");
                  pw.println("</testcase>");
              }
          }
          pw.println("</testsuite>");
          return sw.toString();
      }
docs: {@inheritDoc}