Thanks! Exactly the kind of feedback I was looking for. I am not contrained by MSXML's behavior, but some of my users may be accustomed to their error handling. Interesting that you should bring up the error versus fatal error issue b/c I was wondering exactly how I should treat these errors. Should I return an error which can skip the rest of my users code, or don't return an error and trust that they check my output of parse errors. I had been planning on returning an error and populating a parse errors array with all available error messages.
Thanks. "Jeffrey Rodriguez" To: [EMAIL PROTECTED] <[EMAIL PROTECTED] cc: ail.com> Subject: Re: Schema validation error reporting 09/11/2003 02:36 PM Please respond to xerces-c-dev Elliot, 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]