Hi Eswar, I am currently in the process of making changes to ValidationException to include information such as the field name, the field value and the restriction on the value.
Please see the e-mail thread posted to castor-dev entitled "XML Schema Validation: returning the field name in the exception" which were active on Jan. 3 and 4 to see if my planned changes would address your concerns. I hope to submit my changes to Castor soon. Wish me luck! Joyce ; ) --- [EMAIL PROTECTED] wrote: > > Hi, > > I have typical validation problem. where i would > like to know the xml > element (Java bean) that was invalid. > for example if i have an element X which starts the > validation process, but > the elemnt that violates the validation is Y well > indepth from X (nth child > of X). > I find that castor raises an exception at X , > informing in the > ValidationException the location which is a XPATH > URL & an descriptive > message. > > But what i would like to have is the element "Y" > ???? IS IT POSSIBLE ! > > Thanks in advance, > Eswar Subramanyam. > > > > This message and any attachments (the "message") is > intended solely for the addressees and is > confidential. > If you receive this message in error, please delete > it and > immediately notify the sender. Any use not in accord > with > its purpose, any dissemination or disclosure, either > whole > or partial, is prohibited except formal approval. > The internet > can not guarantee the integrity of this message. > BNP PARIBAS (and its subsidiaries) shall (will) not > therefore be liable for the message if modified. > > > --------------------------------------------- > > Ce message et toutes les pieces jointes (ci-apres le > > "message") sont etablis a l'intention exclusive de > ses > destinataires et sont confidentiels. Si vous recevez > ce > message par erreur, merci de le detruire et d'en > avertir > immediatement l'expediteur. Toute utilisation de ce > message non conforme a sa destination, toute > diffusion > ou toute publication, totale ou partielle, est > interdite, sauf > autorisation expresse. L'internet ne permettant pas > d'assurer l'integrite de ce message, BNP PARIBAS (et > ses > filiales) decline(nt) toute responsabilite au titre > de ce > message, dans l'hypothese ou il aurait ete modifie. > > ----------------------------------------------------------- > > If you wish to unsubscribe from this mailing, send > mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > ______________________________________________________________________ Web-hosting solutions for home and business! http://website.yahoo.ca ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
