Robert,
please see my previous reply...it's the difference between using
non-static and static unmarshal method. All non-static configuration on
the Unmarshaller cannot be accessed via the static unmarshal method,
which you were using in your first example.
Now you are using a non-static method, which is why the
setIgnoreExtraElements works.
--Keith
Robert La Ferla wrote:
>
> This is definitely a bug in Castor. If you instantiate the Unmarshaller
> using a class, it works fine:
>
> unmarshaller = new Unmarshaller(MyType.class);
> unmarshaller.setIgnoreExtraAttributes(true);
> unmarshaller.setIgnoreExtraElements(true);
> reader = new FileReader(filename);
> myobj = (MyType)unmarshaller.unmarshal(reader);
>
> but the other way does not work.
>
> Robert
>
> -----------------------------------------------------------
> 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