Yeah, I knew that might be an issue. But the data isn't accessable through the web (it's on an internal server behind a firewall for work). I've tried to recreate the problem in the HTML below.

What I am trying to pull out is that "Header 2" that is actually in the "Header 1" position of the next deeper table. Changing the depth with TableExtract will pull out a deeper table, but it doesn't link it with the previous table. The documentation for this module talks about chaining tables, but it seems as I understand it, that you are chaining the table for ALL cases. (ie. not just the Header 2 situation, but Header 1,2,3,4 would then be expected to be in a deeper table)

Seems like a case this module probably didn't expect and wouldn't be expected to work properly with, however, I'm wondering if there is way I can still get the functionality out.... thanks!

<table> <tr> <td>Header 1</td> <td> <table> <tr><form action="search.php" name="searchsimple" meth +od="post"> <td><b>Header 2</b> </td> <td> <a href="thispage.php" ><font size="1" co +lor="white">Update this page</font></a> </td> <td> <table> <tr> td><b>Search the web:</b></font> + </td> <td> <input type="text" name=sear +chtext size=10> <input type="submit" value=" +Search!"> </td> </tr> </table> </td> </tr></form> </table> </td> <td> Header 3</td> <td> Header 4</td> </tr> <tr>... data </tr> <tr>... data </tr> <tr>... data </tr> </table>

In reply to Re: Re: Embedded Table Headers with HTML::TableExtract by Anonymous Monk
in thread Embedded Table Headers with HTML::TableExtract by hoopsbwc34

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.