public final class Validator
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
setResolver(javax.xml.transform.URIResolver resolver) |
SchematronResult |
validate(java.io.File xml)
Performs validation of the passed XML data.
|
SchematronResult |
validate(java.io.File xml,
OutputOptions options)
Performs validation of the passed XML data.
|
SchematronResult |
validate(javax.xml.transform.Source xml)
Performs validation of the passed XML data.
|
SchematronResult |
validate(javax.xml.transform.Source xml,
OutputOptions options)
Validates the XML data using the default resolver.
|
SchematronResult |
validate(javax.xml.transform.Source xml,
OutputOptions options,
javax.xml.transform.URIResolver resolver)
Validates the XML data.
|
public void setResolver(javax.xml.transform.URIResolver resolver)
resolver - A URI resolver to use during validation.public SchematronResult validate(java.io.File xml) throws SchematronException
SchematronException - Should an error occur during validation.public SchematronResult validate(java.io.File xml, OutputOptions options) throws SchematronException
SchematronException - Should an error occur during validation.public SchematronResult validate(javax.xml.transform.Source xml) throws SchematronException
SchematronException - Should an error occur during validation.public SchematronResult validate(javax.xml.transform.Source xml, OutputOptions options) throws SchematronException
xml - XML source to validateoptions - The output optionsSchematronException - Should an error occur during validation.public SchematronResult validate(javax.xml.transform.Source xml, OutputOptions options, javax.xml.transform.URIResolver resolver) throws SchematronException
xml - XML source to validateoptions - The output optionsresolver - The URI resolver to use (overrides default)SchematronException - Should an error occur during validation.