Diiging into the parser documentation I found the following method in the parser named
setValidationConstraintFatal.
It is set to false by default, but if it is set to true then the parser will treat a validation error as
fatal and will exit depending of the state of setExitOnFirstFatalError ( which by default it is set to true).
In my opinion, settting setValidationConstraintFatal( true) and making sure that
setExitOnFirstFataErrorError(true), should cause the parser to only report the first vaildation
error.
I don't know if thisl works and if it would be similiar to MS parser behavior but it would be worth it
trying it.
Regards,
Jeffrey Rodriguez Silicon Valley
From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Schema validation error reporting Date: Thu, 11 Sep 2003 10:24:13 -0500
Ok, this topic has probably been dealt with before, but I can't seem to find it....if it already exists, I apologize.
When I have an instance document that fails against a given schema, Xerces returns a long list of errors. However, in MSXML I seem to just get the first error returned. Is this behavior defined somewhere in the DOM Core? If so, where?
The reason this matters is that I need to expose the errors I find to my users. Should I report all of these errors, or just the first one?
Thanks!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage. http://join.msn.com/?PAGE=features/es
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]