I looked at the properties documentation on the site.  I did not see a property which 
'setIgnoreElements=true'.  I tried turning off validation, that didn't work.  Is there 
a more complete properties file document, or do you know which property I am looking 
for?

Any help is appreciated!

Thanks,
Michael

-----Original Message-----
From: Keith Visco [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 1:55 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] [castor-dev]




Sure...just don't call the static method:

Unmarshaller unm = new Unmarshaller(MyClass);
unm.setIgnoreExtraElements(true);
unm.unmarshal(reader);


You could also edit the castor.properties file to enable this, and then
you can still call the static method if you like to.

--Keith

"Davis, Michael A. (CDS)" wrote:
> 
> Howdy,
> 
> I am calling Unmarshaller.unmarshal(class, reader) which is a static method.  That 
> doesn't offer me the opportunity to set the process up to ignore extra elements.
> 
> Has anyone tried to find a work around to this?
> 
> If not, I am thinking of writing another static unmarshal(class, reader) method that 
> will ignore extra elements by default, instead of the other way.
> 
> Any thoughts?
> 
> Thanks for your time.
> 
> Michael Davis
> #####################################################################################
> Attention:
> The information contained in this message and or attachments is intended
> only for the person or entity to which it is addressed and may contain
> confidential and/or privileged material. Any review, retransmission,
> dissemination or other use of, or taking of any action in reliance upon,
> this information by persons or entities other than the intended recipient
> is prohibited. If you received this in error, please contact the sender and
> delete the material from any system and destroy any copies.
> #####################################################################################
> 
> -----------------------------------------------------------
> 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

#####################################################################################
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from any system and destroy any copies.
#####################################################################################

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

Reply via email to