Section 37.2. Parse Tree


37.2. Parse Tree

A 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.1


The 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.



    Fit for Developing Software. Framework for Integrated Tests
    Fit for Developing Software: Framework for Integrated Tests
    ISBN: 0321269349
    EAN: 2147483647
    Year: 2005
    Pages: 331

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net