Return a new
ValidationHandler instance that can be used to
validate an XML document by sending SAX events to it.
The specified
ErrorHandler will be notified of all warnings or
errors encountered validating the SAX events sent to the returned
ValidationHandler , and must not be null.
The returned
ValidationHandler can be used to validate only
one XML document. To validate more than one document, this method should
be called once for each document to validate.
Parameters: handler - an ErrorHandler to notify of validation errors. a non-null ValidationHandler instance. throws: SAXException - if an error occurred creating the validation handler. |