in log4j-converter-config/src/main/java/org/apache/logging/converter/config/internal/v2/XmlConfigurationMapper.java [151:166]
private static void processChildElement(org.w3c.dom.Node childNode, ConfigurationNodeBuilder builder) {
if (isLog4jNamespace(childNode) && childNode instanceof Element) {
Element childElement = (Element) childNode;
if (isComplexElement(childElement)) {
builder.addChild(parseComplexElement(childElement));
return;
}
String value = getSimpleElementValue(childElement);
// An empty Simple Element is probably a plugin, e.g. `<JsonTemplateLayout/>`
if (value.isEmpty()) {
builder.addChild(parseComplexElement(childElement));
} else {
builder.addAttribute(childElement.getNodeName(), value);
}
}
}