Re: [Htmlparser-user] is htmlparser used only once?
Brought to you by:
derrickoswald
From: Derrick O. <Der...@Ro...> - 2006-11-06 13:10:16
|
Collect everything in a NodeList using parse(null), i.e. no filter. Then filter the NodeList each time using NodeList.extractAllNodesThatMatch(). Dave wrote: > Hi, > > Parser parser = new Parser(); > parser.setResource(http://web-site); > > ... > NodeList nodes = parser.extractAllNodesThatMatch(filter); > > NodeList nodes1 = parser.extractAllNodesThatMatch(filter); > > The first call is correct, having the right node list. > but the second call with the same filter returned null. > > I need to use the same parser multiple times without re-parsing the > same page. > parser.reset() will re-parse the same page. What should I do? > > Thanks for help. > > david > > > ------------------------------------------------------------------------ > Check out the New Yahoo! Mail > <http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta>- > Fire up a more powerful email and get things done faster. > >------------------------------------------------------------------------ > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >------------------------------------------------------------------------ > >_______________________________________________ >Htmlparser-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlparser-user > > |