Sun Adapter for TCP/IP HL7 User's Guide

Obtaining the Validator Object

Below is a sample call to the getDefaultValidator method.


com.stc.connector.hl7.schematron.SchematronValidator 
validator = factory.getDefaultValidator( domSource );

In the above example, domSource is the DOMSource object of the schematron XML.