[ 
http://issues.apache.org/jira/browse/XERCESJ-506?page=comments#action_59610 ]
     
Diane Estes commented on XERCESJ-506:
-------------------------------------

The bug-506-patch.txt that is attached to this issue fixes the ability to now 
set the warn-on-undeclared-element feature without throwing the 
org.xml.sax.SAXNotRecognizedException, however when an undeclared element is 
encountered during validation an ERROR level validation exception is being 
thrown rather than a WARNING.  Isn't this the whole point of this feature, to 
request a "warning" for undeclared elements?  We want to know if undeclared 
elements are being passed to us from vendor xml, but we do not want to stop 
processing which is what the error level exception causes.

Please advise.

> warn-on-undeclared-element feature not recognized
> -------------------------------------------------
>
>          Key: XERCESJ-506
>          URL: http://issues.apache.org/jira/browse/XERCESJ-506
>      Project: Xerces2-J
>         Type: Bug
>   Components: DTD
>     Versions: 2.2.0
>  Environment: Operating System: All
> Platform: All
>     Reporter: ora01
>     Assignee: Xerces-J Developers Mailing List
>  Attachments: bug-506-patch.txt
>
> The documented feature "http://apache.org/xml/features/validation/warn-on-
> undeclared-elemdef" is not recognized anymore. When setting this feature on a 
> DOMParser, an exception is thrown: 
> org.xml.sax.SAXNotRecognizedException: 
> http://apache.org/xml/features/validation/warn-on-undeclared-elemdef

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to