public static String getXML(final NodeInfo nodeInfo) {
        try {
            final StringWriter sw = new StringWriter();
            final StreamResult sr = new StreamResult(sw);
            QueryResult.serialize(nodeInfo, sr, getOutputProperties());
            return sw.toString();
        } catch (final XPathException | RuntimeException e) {
            throw ProcessException.create(e.getMessage());
        }
    }
Creates an XML string from the event stack captured for the matched
record.
stroom-pipeline/src/main/java/stroom/pipeline/xml/event/EventListUtils.java