Thomas Börkel <[EMAIL PROTECTED]> wrote on 08/29/2006 02:11:42 AM: > HI! > > >> Xerces throws an error at the first occurrence of a schema validation
> >> error and then stops. > > > Can you give an example (docs, code, stack traces, etc...)? Schema > validation errors are non-fatal. The validator should only stop if > an exception is thrown from an error handler. Note that if you're using JAXP > > 1.3 validation API the default error handler [1] always throws an > exception when a validation error is reported. > > I have my own error handler. Please see attached example. The XML > document has 2 schema violations, but only the first is being reported. I see that both errors are in the same complex type. Xerces only reports one error (per enclosing element) for invalid complex content. The message you get tells you the first element in the sequence which was determined to be invalid and supplies you with a list of valid element choices for that position in the sequence. > Thanks! > > Thomas > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
