You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Peters, Chris" <Ch...@egg.com> on 2003/01/22 15:56:35 UTC

Schema validation error messages

Firstly, sorry if this is a common question, I have only just subscribed and
all the message archives seem to be down.

I am using Xerces 2.2.1 to parse and validate an xml doc against its schema
correctly. By setting an error handler I can see the errors that are thrown
when the xml is invalid, but the errors seem pretty strange to me. For
example: 

	cvc-datatype-valid.1.2.1: '' is not a valid 'float' value.
	cvc-type.3.1.3: The value '' of element 'pia_number' is not valid.
	cvc-datatype-valid.1.2.1: '' is not a valid 'float' value.
	cvc-type.3.1.3: The value '' of element
'percentage_of_main_commission' is not valid.

There seems to be two errors thrown for each validation error?? Why doesn't
the first one mention the name of the field either??

If anyone has a better way of handling these errors to return something more
meaningful I would be very interested.

Cheers,

Chris

Heres my source:


This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.  
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.


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