return dateFormat.format(date);
}
public int countOfTagWithClassBelowTagWithIdPrefix(String childTag, String tagClass, String parentTag, String parentIdPrefix) throws Exception {
NodeList parents = getMatchingTags(
new AndFilter(
new TagNameFilter(parentTag),
new HasAttributePrefixFilter("id", parentIdPrefix))
);
NodeFilter predicates[] = {
new TagNameFilter(childTag),
new HasAttributeFilter("class", tagClass)
};
NodeFilter filter = new AndFilter(predicates);
NodeList matches = parents.extractAllNodesThatMatch(filter, true);
return matches.size();
}