Basic table parser
The result is a ParagraphStyle containing a Table element with all the appropriate properties. RowCount and ColCount are calculated and set. Rows are also included. All tr, th, and td elements are parsed inside the TableParser. Parsing of all other child elements is prevented.
becomes