StringWriter sw = new StringWriter();
Result result = new StreamResult(sw);
Receiver serializer = tempConfig.getSerializerFactory().getReceiver(
result, tempConfig.makePipelineConfiguration(), new Properties());
tempConfig.exportComponents(serializer);
String scm = sw.toString();
try {
scmValidator.validate(new StreamSource(new StringReader(scm)));
} catch (SaxonApiException e) {
System.err.println("*** SCM does not validate against schema for SCM ***");