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/10/16 17:12:18 UTC

DO NOT REPLY [Bug 4202] New: - Parser do not throw exceptions

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=4202>.
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=4202

Parser do not throw exceptions

           Summary: Parser do not throw exceptions
           Product: Xerces-C++
           Version: 1.5.1
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Non-Validating Parser
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: eugenek@usa.com


If i have this file:
begin bad.xml
no XML here!
end

and try to parse it i would expect to get an exception from any parser, but 
this code hides problems until later

DOM_Parser parser;
parser.parse ("bad.xml");
DOM_Document doc = parser.getDocument();

// doc is bad at this point

Shouldn't parser throw exceptions if non-XML stuff is fed into it?

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