You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2001/06/27 18:46:09 UTC

[Bug 2353] - Validating Parser parses after validation failed

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2353

*** shadow/2353	Wed Jun 27 06:36:12 2001
--- shadow/2353.tmp.5541	Wed Jun 27 09:46:09 2001
***************
*** 7,13 ****
  |     Severity: Normal                   OS/Version: Windows NT/2K           |
  |     Priority: Other                     Component: Validating Parser (Sche |
  +----------------------------------------------------------------------------+
! |  Assigned To: xerces-c-dev@xml.apache.org                                  |
  |  Reported By: tamar_admon@bmc.com                                          |
  |      CC list: Cc:                                                          |
  +----------------------------------------------------------------------------+
--- 7,13 ----
  |     Severity: Normal                   OS/Version: Windows NT/2K           |
  |     Priority: Other                     Component: Validating Parser (Sche |
  +----------------------------------------------------------------------------+
! |  Assigned To: knoaman@ca.ibm.com                                           |
  |  Reported By: tamar_admon@bmc.com                                          |
  |      CC list: Cc:                                                          |
  +----------------------------------------------------------------------------+
***************
*** 23,25 ****
--- 23,44 ----
  Thanks,
  
  Tamar Admon
+ 
+ ------- Additional Comments From knoaman@ca.ibm.com  2001-06-27 09:46 -------
+ Hi Tamar,
+ 
+ According to the XML Standard, violations of validity constraints are errors and 
+ violations of well-formedness constraints are fatal errors.   The parser can 
+ recover from errors, but must exit normal processing with fatal errors.   Thus 
+ in Xerces 1.5, the parser recovers and continue processing after encountering a 
+ validation error (schema errors).
+ 
+ In Xerces 1.5, we have added a 'setValidationContraintFatal' method to the 
+ SAXParser and DOMParser to allow users to set validation errors as fatal errors 
+ and hence the parser will exit on the first encounter. I will add that method to 
+ the SAX2XMLReader, and if you would like to parser to exit when validating then 
+ you need to pass true to that method before calling the parse function. I will 
+ inform you when the changes are in place.
+ 
+ Regards,
+ Khaled
\ No newline at end of file

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org