Re: Contribution: HTML::TableExtract::Raw
Matt Sisk <[email protected]> Wed, 07 Apr 2004 17:13:18 -0500
| Newsgroups | gmane.comp.lang.perl.modules.html-tableextract |
|---|---|
| Message-ID | <[email protected]> |
Julian Mehnle wrote: >I needed a class to extract the _raw_ HTML code of a table specified >through depth and count (similar to HTML::TableExtract), instead of its >_parsed_ rows and columns. I wrote it as a sub-class of HTML::Parser: > > http://files.mehnle.net/software/perl/HTML/TableExtract/Raw.pm > >I'm going to add documentation to it soon. > >Would you like to include it in your HTML-TableExtract CPAN distribution? > > I can take a look at it -- this sort of functionality is fairly frequently requested, but I have never had the time to really do it properly. It's sort of a sub-problem of the "target tables within HTML documents and edit them in place" problem, which involves a sort of mapping onto something like an HTML::Element tree structure. Part of the power of HTML::TableExtract is correctly targeting tables, in particular by headers. Also, when you retain the entire HTML structure, do you want your outer tables to contain the entire HTML structure of embedded tables, etc. I haven't looked at yours yet, but I'm curious what the options are. At the very least, there's probably some overlap in the targetting functionality. Matt ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click