if(p.isInTable() && p.getTableLevel() > parentTableLevel && parentTableLevel==0) {
Table t = r.getTable(p);
xhtml.startElement("table");
xhtml.startElement("tbody");
for(int rn=0; rn<t.numRows(); rn++) {
TableRow row = t.getRow(rn);
xhtml.startElement("tr");
for(int cn=0; cn<row.numCells(); cn++) {
TableCell cell = row.getCell(cn);
xhtml.startElement("td");
for(int pn=0; pn<cell.numParagraphs(); pn++) {
Paragraph cellP = cell.getParagraph(pn);
handleParagraph(cellP, p.getTableLevel(), cell, document, docPart, pictures, pictureTable, xhtml);