There's an example of filtering out tgas here. The best way to maintain an extensible implementation would probably be to have an external text file containing the elements you want to filter out. This could be loaded with the filter and you could have a list of elements instead of the single element in the example below:
http://www.cafeconleche.or
Main Topics
Browse All Topics





by: objectsPosted on 2003-12-17 at 13:28:50ID: 9959875
Have your filter maintain a flag indicating whether tag is of interest, setting it false when start tag you don't care about is encountered, and true when matching end tag is encountered.
And only pass events on to wrapped handler when flag is true.