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 Bob Nemeth <ne...@erlllc.com> on 2001/09/28 18:45:31 UTC

Exception problem with DomPrint example

Xerces Version: 1.5.1
Visual C++ Pro w/SP5

I just started working with the Xerces-C, and I wanted to start by tearing
apart some of the examples. After playing for a while, I copied the 3 source
files for DOMPrint (DOMPrint.cpp, DOMTreeErrorReporter.cpp/hpp) and created
a new project using these files.

They compiled fine. But when I ran the program and it tried to parse an
invalid XML file, the generic (...) exception handler caught the parse
error, not the XMLException handler. When I run the precompiled version of
DOMPrint, the XMLException handler catches it, reporting the correct error.

Can someone explain why this would happen? I assume I'm not doing something
correctly.

 -- Bob


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