public static String requireAttribute()

in log4j-changelog/src/main/java/org/apache/logging/log4j/changelog/util/XmlReader.java [98:103]


    public static String requireAttribute(final Element element, final String attributeName) {
        if (!element.hasAttribute(attributeName)) {
            throw failureAtXmlNode(element, "missing attribute: `%s`", attributeName);
        }
        return element.getAttribute(attributeName);
    }