public static String extractText(Element element, String name) {
        Element child = element.element(new QName(name));
        if (child == null) {
            throw new RuntimeException("Required element " + name + " not present");
        }
        return child.getTextTrim();
    }
Common XML processing helpers used in driver and serializer test suites.
plc4j/utils/test-utils/src/main/java/org/apache/plc4x/test/xml/XmlHelper.java