valid: Implement xmlCtxtValidateDocument This allows to use the error handler or resource loader of a parser context.