Hi Paromita,

you may want to call:

unmarshaller.setIgnoreExtraElements(true);
unmarshaller.setIgnoreExtraAttributes(true);

before unmarshalling.

Regards
Ralf


Ghosh, Paromita (Cognizant) schrieb:
> We have a requirement where need to only a few tags in the XML that we
> are receiving from an external source. We are using
> org.exolab.castor.xml.Unmarshalle to unmarshal the response. We use a
> mapping file where we mention the elements in the object. Is there a way
> to avoid mapping all tags in the XML and to just take the tags that we need?
> 
> Thanks and Regards,
> 
> Paromita
> 
> Tel.  91 - (033) 2357 3211 Ext. 2255
> 
> Vnet. 001 - (973) 368 9300 Ext. 32255
> 
> This e-mail and any files transmitted with it are for the sole use of
> the intended recipient(s) and may contain confidential and privileged
> information.
> If you are not the intended recipient, please contact the sender by
> reply e-mail and destroy all copies of the original message.
> Any unauthorised review, use, disclosure, dissemination, forwarding,
> printing or copying of this email or any action taken in reliance on
> this e-mail is strictly
> prohibited and may be unlawful.
> 
> Visit us at http://www.cognizant.com
> 

-- 

Syscon Ingenieurbüro für
Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
D-72127 Kusterdingen
Germany

Tel.   +49 7071 3690 52
Mobil: +49 173 9630135
Fax    +49 7071 3690 98

Email: [EMAIL PROTECTED]
Web:   www.syscon-world.de

-------------------------------------------------
If you wish to unsubscribe from this list, please 
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to