[Htmlparser-user] TagNameFilter
Brought to you by:
derrickoswald
|
From: <at...@gm...> - 2007-12-06 19:10:43
|
Hi,
i need some help with the TagNameFilter.
I have a function to get all the p tags out a html document.
NodeList nl =3D parser.extractAllNodesThatMatch(new TagNameFilter("p"));=
But now i want to filter from the NodeList all entries that do not match=
a =
special string.
I guess the key would be the "accept() function" but im unsure how to =
implement it(well the string compare etc is clear but the usage of the =
accept() + Tag.class ).
And furthermore i have problems with doubled entries because of nested p=
=
tags.
Thanks
Alex
|