public static String getText(final EventList events) {
        final CharBuffer cb = new CharBuffer(100);
        try {
            events.fire(new DefaultHandler() {
                @Override
                public void characters(final char[] ch, final int start, final int length) {
                    cb.append(ch, start, length);
                }
            });
        } catch (final SAXException e) {
            LOGGER.error(e.getMessage(), e);
        }

        return cb.toString();
    }
Creates an text string from the content events in the event stack
captured for the matched record.
stroom-pipeline/src/main/java/stroom/pipeline/xml/event/EventListUtils.java