boolean (final EvaluatedXmlName evaluatedXmlName, final XmlTag tag, final XmlFile file) { String evaluatedLocalName = evaluatedXmlName.getXmlName().getLocalName(); boolean qNameMatch = evaluatedLocalName.equals(tag.getName()); return (qNameMatch || evaluatedLocalName.equals(tag.getLocalName())) && evaluatedXmlName.isNamespaceAllowed(tag.getNamespace(), file, !qNameMatch); }