[Htmlparser-user] Parser once, and filter more tags
Brought to you by:
derrickoswald
From: 丛林 <con...@gm...> - 2011-05-01 02:56:36
|
Hi, I am a freshman in htmlparser area. My problem is: If I want to filter many tags, how can I complete it during one parser with out reset this parser? For example: NodeFilter A = new TagNameFilter("A"); NodeList a = new NodeList(); NodeFilter B = new TagNameFilter("B"); NodeList b = new NodeList(); Now, I have to fetch a and b with parser during two times: a = Parser.parser(A); Parser.reset(); b = Parser.parser(B); Can I complete these once? [a, b] = Parser.parser(A, B); As you know, another Parser will consume more resourse. Thanks for your help :-) Best Wishes, -LIn |