Re: [Htmlparser-developer] Return all table rows
Brought to you by:
derrickoswald
From: S A. <sah...@gm...> - 2010-04-14 10:23:30
|
Sorry kinda new to java, the filterbuilder seems to be a .jar? I have this so far: nlRows = htmlParser.extractAllNodesThatMatch( new AndFilter( new HasChildFilter("class","prod") ) ); How do I get all elements with <tr>? On Tue, Apr 13, 2010 at 1:38 AM, Derrick Oswald <der...@gm...>wrote: > 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 >> >> > > > ------------------------------------------------------------------------------ > 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 > > |