Hi Philip,
You can use
unmarshallerObj.setIgnoreExtraElements(true);
This will ignore the extra elements that you haven't mapped in your mapping.
Regards,
Bhupi.
In God We Trust Rest We TEST
On Sun, 20 Mar 2005 Philip Dodds wrote :
> Is there any way to ignore XML elements/attributes that are in the
> document that have not been mapped.
>
>
>
> Basicallly I have an XML document that contains a lot of stuff that I
> really don't want to map to objects and I was hoping I could map what I
> wanted and have Castor ignore anything else.
>
>
>
> Thanks in advance
>
>
>
> Philip
>-----------------------------------------------------------
>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
