Title: Omitting validation error message
> Or is there a better way to have Xerces automatically determine whether there is a DTD declaration needing validation or no DTD declaration, henceforth, no validation.
 
Use setValidationScheme(SAXParser::Val_Auto)
 
Tinny
----- Original Message -----
Sent: Tuesday, February 26, 2002 4:05 PM
Subject: Omitting validation error message

Hi,

Right now in Xerces 1.6, an error message "Unknown element 'elementname'", appears when you attempt to validate a document that has no DTD/Schema declaration.  Although the document is well-formed etc., once the validation switch is turned on before parsing, an error will occur.  This never happened in Xerces 1.5.  Is there a way to omit validation errors if the document is OK but the validation switch was turned on before parse?  Or is there a better way to have Xerces automatically determine whether there is a DTD declaration needing validation or no DTD declaration, henceforth, no validation.

Thanks,
Siehnai

Reply via email to