@ensure_tag(['<STR_LIT>'])<EOL>def build_table(table, meta_data):
<EOL>table_el = etree.Element('<STR_LIT>')<EOL>w_namespace = get_namespace(table, '<STR_LIT:w>')<EOL>row_spans = get_rowspan_data(table)<EOL>for el in table:<EOL><INDENT>if el.tag == '<STR_LIT>' % w_namespace:<EOL><INDENT>tr_el = build_tr(<EOL>el,<EOL>meta_data,<EOL>row_spans,<EOL>)<EOL>table_el.append(tr_el)<EOL><DEDENT><DEDENT>visited_nodes = list(table.iter())<EOL>return table_el, visited_nodes<EOL>
This returns a table object with all rows and cells correctly populated.