I was facing the same problem one way to solve this may be to define a dummy
field in the dummy xml file for the new element that is introduced ....
<field name="sayan"
type="string"
get-method="toString"
transient="true">
<bind-xml node="element" matches="TO"/>
</field>
Where TO is the element TAG... and sayan is the dummy field name which is
not defined in the java class...
-----Original Message-----
From: HANKE,JUERGEN (HP-Germany,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 18, 2002 12:16 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] unmarshalling
Hi,
I'm using CASTOR to unmarshal and marshal XML messages for a while and
everything works fine. Now 4 optional fields where added to the XML. With
the new XML message I get an unmarshal exception that it can't find the
FieldDescriptor for the new fields. Do I always have to regenerate the java
classes with the source generator if I have a new field in the XML message?
Is there another way to handle this, like setting a property to ignore
fields in the XML message if it can't find a field descriptor. But still
make sure that all fields are filled where a field descriptor exists and
which are mandatory?
Best Regards,
Juergen
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
----------------------------------------------------------------------------------------------------------------------