public void addTable(Element elem) throws Exception {
public void addTable(Element elem) {
    public void addTable(Element elem) throws Exception {        // for each tr        NodeList rows = elem.getChildNodes();        boolean first_row = true;        int row_count = 0;        for(int i=0; i<rows.getLength(); i++) {            Node row = rows.item(i);            if(row.getNodeName().equals("tr")) {                if(first_row) {                    addFirstRow(row);                    first_row = false;                } else {                    addRow(row,row_count);                }                row_count++;            }                    }    }