You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/11/22 14:08:34 UTC

DO NOT REPLY [Bug 24914] New: - [Fatal Error] :1:20: XML version "2.0" is not supported, only XML 1.0 is supported.

[Fatal Error] :1:20: XML version "1.2" is not supported, only XML 1.0 is supported.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24914>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

[Fatal Error] :1:20: XML version "2.0" is not supported, only XML 1.0 is supported.
[Fatal Error] :1:20: XML version "1.2" is not supported, only XML 1.0 is supported.

           Summary: [Fatal Error] :1:20: XML version "2.0" is not supported,
                    only XML 1.0 is supported.
                    [Fatal Error] :1:20: XML version "1.2" is not supported,
                    only XML 1.0 is supported.
           Product: Xerces2-J
           Version: 2.5.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: SAX
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: elharo@metalab.unc.edu


My test cases try an XML 1.2 and 2.0 document to make sure they are correctly
reported as malformed (e.g. <?xml version='1.2'?><root/>). Xerces does correctly
report these as malformed. However, when it does so it presents the following
error message on the console:

[Fatal Error] :1:20: XML version "2.0" is not supported, only XML 1.0 is supported.
[Fatal Error] :1:20: XML version "1.2" is not supported, only XML 1.0 is supported.

Two problems with this:

1.  It should now read "only XML 1.0 and 1.1 are supported"

2. It shouldn't be printing anything on the console at all. Yes, it should
report the error, but only to the application's ErrorHandler and relevant catch
blocks. Only if the application fails to catch the exception should anything be
printed on the console. Class libraries such as Xerces should not go behind the
application's back to communicate directly with the user.

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