{
myTable = (TableTableElement) tableList.item(i);
} else { //table with the specific table name is not found. Create table
myTable = dom.newOdfElement(TableTableElement.class);
myTable.setTableNameAttribute(tablename);
spreadsheet.appendChild(myTable);
}
lst = myTable.getElementsByTagNameNS(OdfDocumentNamespace.TABLE.getUri(), "table-row");
if (lst.getLength() == 0) { //the first table row is not existed. Create table row
td = dom.newOdfElement(TableTableRowElement.class);