attrs.addCDATAAttribute("id", report.getId());
attrs.addCDATAAttribute("date", report.getDate().toString());
XMLUtils.startElement(this.xmlConsumer, "report", attrs);
final Iterator si = report.getStatistics().iterator();
while ( si.hasNext() ) {
final Statistics stats = (Statistics)si.next();
attrs.clear();
attrs.addCDATAAttribute("name", stats.getCategory());
attrs.addCDATAAttribute("duraration", String.valueOf(stats.getDuration()));
XMLUtils.createElement(this.xmlConsumer, "component", attrs);
}
XMLUtils.endElement(this.xmlConsumer, "report");
}
XMLUtils.endElement(this.xmlConsumer, "pages");