I make validations of xml instances against schema using the XMLParserConfiguration parser (schema has been previously parsed through grammar preparsing).
If I don't define any error handler, I see 2 messages in the standard error output after a validation failure (constraint violated) :
[Error] :1:54: cvc-maxInclusive-valid: Value '5' is not facet-valid with respect
to maxInclusive '4' for type 'null'.
[Error] :1:54: cvc-complex-type.2.2: Element 'nbEveModuleL' must have no element
[children], and the value must be valid.
When I define an XMLErrorHandler to process validation errors (implementation of warning, error and fatalError methods), I catch only the first error message :
DEBUG ng1175: cvc-maxInclusive-valid: Value '5' is not facet-valid with respect
to maxInclusive '4' for type 'null'.
So I don't know the name of the element which has not been validated (it appears only in the second message) !
Any suggestions ?
Thank you
Nicolas GOLOUBENKO
- Schema Validation Error maillists
- Schema validation error Nicolas . GOLOUBENKO
