Phil Weighill-Smith wrote:
I am using XERCES to validate XML documents against an XSD schema. I
have discovered that only the first content model error is reported.
However, I need to be able to identify as many errors as possible in one
pass. Thus I'm requesting that a new feature be added to (at least) the
SAX parser to permit *all* content model errors to be reported instead.

Currently, the validator components in Xerces don't have the ability to report more than the first error found at each element level due to the way that they're implemented.

Also, what is the parser supposed to do when it finds the
first error? Should it ignore that element/content and
continue from where it was in the model? Should it try to
be predictive about what the user *meant* the element to
be? Going one way or the other could produce a lot of
meaningless errors to be reported.

In short, some approximation of this behavior could be
implemented but I don't see it being done by anyone here
at the present time. Now if you'd like to take a stab at
implementing this functionality that would be great! :)
Just don't make the validation any slower when the feature
is turned off.

--
Andy Clark * [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to