Re: [Htmlparser-developer] Return all table rows
Brought to you by:
derrickoswald
From: Derrick O. <der...@gm...> - 2010-04-13 05:38:45
|
You should be able to create a filter that finds all TR nodes that have TD child nodes with the class="prod" attribute. See the FilterBuilder application. On Tue, Apr 13, 2010 at 5:55 AM, S Ahmed <sah...@gm...> wrote: > Hi, > > Sending my question here, the user mailing list seems to be filled with > spam? > > I have a HTML page, and part of the page that I want to focus on looks > like: > > > <table> > > <tr><td class="prod">.... > </tr> > > <tr><td class="prod">.... > </tr> > > <tr><td class="prod">.... > </tr> > > <tr><td class="prod">.... > </tr> > > </tabe> > > > So I want to extract all the <tr>. > > I have used tmlParser.extractAllNodesThatMatch(...) in the past, but in > this case it seems the only way to get a NodeList of all the <tr> groupings > in this table is to use the value from the 1st <td> in each <tr> that has a > class of 'Prod". > > (class="prod" is unique to the entire HTML page). > > Is this possible to do? > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Htmlparser-developer mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-developer > > |