I would suggest to look at the specs for an answer to your question.

I don't remember of anything that says return all errors or just the first, but the schema specification
talks about a normative outcome tabulation in appendix C.


Each spec specifies suggestions and requirements that would/should follow for processor implementors.

When talking about XML processing errors you could think of the following types of errors:

+ XML parse operations.
  + Well formedness checks that the XML parser would do.
  + Validation errors.
      - DTD validation errors
      -Schema validation errors.

+ APIs specific operatons.
  + DOM.
  + SAX ( this really occurr during callback time during parsing).


for example for DOM operations.


http://www.w3.org/TR/DOM-Level-3-Core/core.html spells out its recommendations about errors
and such.
Look under "Exception DOMException".


What should you report to your users is completely up to you. The problem will always be that
the specs only say what it recommended and required. Processor implementations then will always differ
in the level of error that they provide.


Just my 2 cents.


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]



Reply via email to