boolean (XmlElement xmlElement) { final XmlIndex index = getXmlAnnotatedElementsValue(); if (xmlElement instanceof XmlAttributeValue) xmlElement = (XmlElement)xmlElement.getParent(); final XmlTag tag; if (xmlElement instanceof XmlAttribute attribute) { if (areThereInjectionsWithText(attribute.getLocalName(), index)) return true; if (areThereInjectionsWithText(attribute.getValue(), index)) return true; //if (areThereInjectionsWithText(attribute.getNamespace(), index)) return false; tag = attribute.getParent(); if (tag == null) return false; } else if (xmlElement instanceof XmlTag) { tag = (XmlTag)xmlElement; } else { return false; } if (areThereInjectionsWithText(tag.getLocalName(), index)) return true; //if (areThereInjectionsWithText(tag.getNamespace(), index)) return false; return false; }