Just use:
Unmarshaller unmarshaller = new Unmarshaller(...);
unmarshaller.setValidation(false);
Object obj = unmarshaller.unmarshal(reader);
--Keith
Jenny Linfoot wrote:
>
> Is it possible to set different levels of validation on the
> marshal/unmarshal? I have a situation where I need to be able to
> marshall/unmarshall a message without it throwing an exception if the
> regular expression on one of the fields is not matched.
>
> Thanks
>
> Jenny
>
> -----------------------------------------------------------
> 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