Controlling Validation from Java
Schema validation can be controlled either using the standard JAXP Java interface, or using Saxon's own s9api interface. The two approaches are described in the following sections. The main advantage of using JAXP is that it is portable; the main advantage of s9api is that it is better integrated across the range of Saxon XML processing interfaces.