Re: [Htmlparser-user] Re: Parsing td tr and table
Brought to you by:
derrickoswald
From: Somik R. <so...@ya...> - 2003-03-14 06:36:50
|
> 1) does this mean that I will do the same way for TableRowScanner and > TableColumnScanner or will I extend those from TableScanner. > No - actually TableScanner takes care of related scanners (column and row). So if you register TableScanner alone, you should be fine. > 2) and should this work in cases like <td ...><img src=..></td> Yes of course. Just make sure that you also call registerScanners(), if you want to pick up image tags within the td. Regards, Somik ----- Original Message ----- From: "ja...@jo... Jokisalo" <jan...@ho...> To: <htm...@li...> Sent: Wednesday, March 12, 2003 9:52 PM Subject: [Htmlparser-user] Re: Parsing td tr and table > Thank you Somik! > > 1) does this mean that I will do the same way for TableRowScanner and > TableColumnScanner or will I extend those from TableScanner. > > 2) and should this work in cases like <td ...><img src=..></td> > > Thanks for good product! --Janne > > --------- > parser.registerScanners(); > parser.addScanner(new TableScanner(parser)); > Node[] tables = > parser.extractAllNodesThatAre(TableTag.class); > // you can cast each table to a TableTag and do > // what you want.. > > Regards, > Somik > > > > _________________________________________________________________ > The new MSN 8: advanced junk mail protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > Htmlparser-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user |