At 04:15 PM 19-10-01 -0500, Williamson, Siehnai wrote:
>>>>
I've noticed that the XercesLib files you have set up for Win32 that you provide do not include the following files:

XMLMessages.h
MsgLoader.hpp, .cpp
InMemMsgLoader.hpp, .cpp
MsgCatalogLoader.hpp, .cpp
XMLMsgCat_Ids.hpp

As a result, error messages are not getting loaded in my application. Do I need all these files for proper handling of error messages? If not, which ones do I need?
<<<<

My comments are based on the 1.5.1 release, but this code hasn't changed in some time...

The message loaders for Win32 live in src/util/MsgLoaders/Win32. There are only two files, Win32MsgLoader.hpp and Win32MsgLoader.cpp. If you rename the Xerces DLL, you will not see the error messages (issue 3666, should be fixed in 1.5.2).

The more common mistake is that you need an error handler. Look in the samples. I recommend SAXCount because it is so simple. In SaxCount.cpp, the key lines are:

SAXCountHandlers handler;
parser.setErrorHandler(&handler);

which create and register the error handler. The handler code lives in SaxCountHandlers.cpp/.hpp.

Hope this helps.


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

Reply via email to