Hi Michael,
Try the following:
unmarshaller.setIgnoreExtraElements(true);
--Keith
Michael Goodwin wrote:
>
> Hi, I haven't been able to work out how to do this. If I want to drop a
> field from my Java class, but already have marshalled xml versions of it,
> with this field present. How can I read all the other data in, ignoring
> this one field as the new class. If I could bind it to 'nothing' then this
> would work. For me the advantage of Castor over straight serialisation is
> that the data shouldn't become unreadable if modifications are made to the
> classes (although certainly you can add fields).
>
> thanks, Mike.
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-user
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user