On 3/29/2010 11:01 AM, Stone, Timothy M wrote:

Greetings,

I'm using the C++ API (DOM Parser) to validate my XML files against an XSD.

I have previously seen error messages from the Java xerces validator which
seem more readable (ie, "Invalid content was found starting with element<>.
One of<>  was expected")

The messages I am getting are a bit harder to read and understand.  Is it
possible to change this somehow or am I stuck with the existing messages?
You can change the messages, but to enhance the actual parameter values reported would require you to modify the code.

The text of the messages is in src/xercesc/NLS/EN_US/XMLErrList_EN_US.Xml. Once you modify this file, you will need to re-build the message using the Xlat tool, which is in tools/NLS/Xlat. There's a README in tools/NLS which explains the process.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to