Take a look at Unmarshaller.setIgnoreExtraElements(). That should do the trick for you, i.e. the elements you have mapped will be picked up and all those not mapped will be passed over.
Let us know if you have further questions.
Stephen
On 3/8/06, Ghosh, Paromita (Cognizant) <
[EMAIL PROTECTED]> wrote:
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?
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

