keith,

A related question - using source generator.

The Validate method throws exception at the first occurence of a validation failure (Am I right ?), can it be configured to 'gather' all the errors and return say a Collection of validation errors?

 

 Keith Visco <[EMAIL PROTECTED]> wrote:



Hi Mike,

If you've used the Source Code Generator, then Castor has it's own
object model based validation for the constraints for the schema uses
when generating the classes.

If you're using a mapping file or default introspection, then you can
use the parsers validation, by enabling this in the castor.properties
file and using xsi:schemaLocation="..." on the root element of your XML
instance document.

Hope that helps,

--Keith


Mike Denning wrote:
>
> Can anyone give me instructions on how to perform schema validations when unmarhalling a byte stream into beans using Castor?
>
> thanks in advance....
>
> Michael D. Denning
> Systems Programmer
> NC Department of Justice
> Information Technology Division
> 919-716-1062
>
> --------------------------------! ---------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev



Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more

Reply via email to