Use the methods mentioned below ton invoke the schematron API from the JCD. The following are discussed.
Obtaining the Factory Object
Obtaining the Validator Object
Performing the Validation
com.stc.connector.hl7.schematron.SchematronValidatorFactory factory = com.stc.connector.hl7.schematron.SchematronValidatorFactory.getSchematronValidatorFactory();
com.stc.connector.hl7.schematron.SchematronValidator validator = factory.getDefaultValidator( domSource );
domSource is the DOMSource object of the schematron XML.