If you have 'required=true" for the 'cat' field in your mappings file, try removing it.

Ravinder


From: "Narinder Gaheer" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [castor-dev] Unmarshalling question.
Date: Tue, 24 Jun 2003 10:13:39 -0700
MIME-Version: 1.0
Received: from project.exolab.org ([65.222.219.20]) by mc4-f30.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 24 Jun 2003 10:21:02 -0700
Received: (from [EMAIL PROTECTED])by project.exolab.org (8.11.1/8.11.1) id h5OHVkK14700;Tue, 24 Jun 2003 10:31:46 -0700
Received: from callidussoftware.com (csf.callidussoftware.com [67.97.185.130])by project.exolab.org (8.11.1/8.11.1) with ESMTP id h5OHPB613624for <[EMAIL PROTECTED]>; Tue, 24 Jun 2003 10:25:11 -0700
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
content-class: urn:content-classes:message
Message-ID: <[EMAIL PROTECTED]>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Unmarshalling question.
Thread-Index: AcM6c/OZuP5ozwykRamSJmCk7G83cg==
Precedence: list
X-Sender: [EMAIL PROTECTED]
X-Mailing-List: [EMAIL PROTECTED]
X-Mailing-List-Owner: [EMAIL PROTECTED]
X-Mailing-List-Server: Minimalist v2.2
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 24 Jun 2003 17:21:03.0210 (UTC) FILETIME=[FD0534A0:01C33A74]


Hi all,

I have a piece of XML that I want to map to my Java Object but I don't
want to map all the elements in my XML. An example :-

<foo>
    <bar>......</bar>
    <cat>.....</cat>
    <dog>....<./dog>
</foo>


public class foo{


public void get/setBar()

public void get/setDog()

}


As it is clear from above example, i don't want to unmarshall the <cat>,,,,</cat> element and hence omit it from my mapping file, but castor chokes at it saying no field-descriptor found for element "cat".

Is there a way I can stop Castor to "ensure" that everything from the
XML is mapped to
my Java Object.

Narinder

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail


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




Reply via email to