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 David Bertoni <db...@apache.org> on 2010/04/01 00:04:37 UTC

Re: Way to change format of schema error messages?

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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org