private AbstractXMLFilter getSchemaFilter() {
        schemaFilter.setSchemaLanguage(schemaLanguage);
        schemaFilter.setSchemaValidation(schemaValidation);
        schemaFilter.setSchemaConstraint(schemaConstraint);

        // Wrap the schema filter in a split filter so that it errors on all top
        // level elements.
        final SplitFilter splitFilter = new SplitFilter();
        splitFilter.setSplitCount(1);
        splitFilter.setTarget(schemaFilter);
        return splitFilter;
    }
An XML filter for performing inline schema validation of XML.
stroom-pipeline/src/main/java/stroom/pipeline/filter/SchemaFilterSplit.java