// Rows and cells
for (Object rawR : sheet) {
xhtml.startElement("tr");
Row row = (Row) rawR;
for (Iterator<Cell> ri = row.cellIterator(); ri.hasNext();) {
xhtml.startElement("td");
Cell cell = ri.next();
int type = cell.getCellType();
if (type == Cell.CELL_TYPE_FORMULA) {