|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XmlValidator
Simple processor that validates a given Source. Can be created via the XmlValidatorFactory.
XmlValidatorFactory.createValidator(org.springframework.core.io.Resource, String)| Method Summary | |
|---|---|
org.xml.sax.SAXParseException[] |
validate(javax.xml.transform.Source source)
Validates the given Source, and returns an array of SAXParseExceptions as result. |
org.xml.sax.SAXParseException[] |
validate(javax.xml.transform.Source source,
ValidationErrorHandler errorHandler)
Validates the given Source and ValidationErrorHandler, and returns an array of SAXParseExceptions as result. |
| Method Detail |
|---|
org.xml.sax.SAXParseException[] validate(javax.xml.transform.Source source)
throws java.io.IOException
Source, and returns an array of SAXParseExceptions as result. The array will
be empty if no validation errors are found.
source - the input document
SAXParseExceptions
java.io.IOException - if the source cannot be read
XmlValidationException - if the source cannot be validated
org.xml.sax.SAXParseException[] validate(javax.xml.transform.Source source,
ValidationErrorHandler errorHandler)
throws java.io.IOException
Source and ValidationErrorHandler, and returns an array of SAXParseExceptions as result. The array will be empty if no validation errors are found.
source - the input documenterrorHandler - the error handler to use. May be null, in which case a default will be used.
SAXParseExceptions
java.io.IOException - if the source cannot be read
XmlValidationException - if the source cannot be validated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||