}
Element element = (Element) node;
if(this.level != level) {
return MatchType.NOT_A_MATCH;
} else if(element.getName().equals(elementName) && element.hasAttribute(attributeName)
&& element.attributeValue(attributeName).equals(attributeValue)) {
return MatchType.NODE_MATCH;
}
return MatchType.NOT_A_MATCH;
}