filter(node, checkers, maxLevel);
}
public void filter(HTMLNode node, List<NodeChecker> checkers, int max) {
//System.out.println(new String(node.getValue()));
CheckModel model = new CheckModel(node);
int level = 0;
while(level <= max) {
for(int i = 0 ; i < checkers.size(); i++) {
if(!checkers.get(i).isValid(model, level)) {
if(model.getRemoveNode().getTextValue().indexOf("XUÂN YÊU") > -1) {
System.out.println("===================================================");
System.out.println(checkers.get(i).getClass());
// System.out.println(node.getTextValue());
}
removeNode(model.getRemoveNode());
return;
}
}
level++;
}