37.2. Parse TreeA sequence of tables in a file and the subcomponents of those tables are represented by objects of class Parse. The Parse structure for the table in Figure 37.1 is shown in Figure 37.3. We have shown four Parse fields here: (1) the type of Parsetable, TR, or TD, corresponding to the HTML tags; (2) the text within a cellonly in TR objects; (3) the parts; and (4) the more. Figure 37.3. Parse Tree for Figure 37.1The top Parse object represents the whole table; parts refers to a sequence of TR Parse objects that represent the rows of the table; more refers to the next table, if any. Each tr (row) object in turn refers to a sequence of td (column) objects; the sequence of components is formed by following the more values. |