Hi Charlie, you might want to take a look at the undocumented tip of Guru Keith: http://www.mail-archive.com/[email protected]/msg00339.html
BTW this feature will be implemented in future releases, Arnaud -> -----Original Message----- -> From: Charlemagne L. Rey [mailto:[EMAIL PROTECTED]] -> Sent: Monday, October 01, 2001 1:43 PM -> To: [EMAIL PROTECTED] -> Subject: [castor-dev] need some help in unmarshalling -> -> -> Hello Castor-guros, -> -> I have some problems in unmarshalling my xml files to -> my defined objects. I am using a mapping file for -> my XML to be parsed. Then I figured out that I need -> to define every element of my XML file to my mapping -> file. Is it possible to ignore some of fields in the -> XML and continue to unmarshall it? -> -> e.g. -> -> Input XML file: -> -> <MyRootElement> -> <MyFirstNeededElement/> -> <IgnoreMeElement/> -> </MyRootElement> -> -> Mapping file: -> <mapping> -> <class name="test.DummyRoot"> -> <map-to xml=MyRootElement"/> -> <field name="dummyElement" type="string"> -> <bind-xml name="MyFirstNeededElement"/> -> </field> -> </class> -> </mapping> -> -> -> My Java Classes: -> -> package test; -> -> public class DummyRoot -> { -> String dummyElement; -> } -> -> Do I need something to do with my mapping file -> to get rid of the "IgnoreMeElement" and produce -> a the instance of test.DummyRoot object? -> -> Thanks. -> -> Charlie -> -> _________________________________________________________ -> Do You Yahoo!? -> Get your free @yahoo.com address at http://mail.yahoo.com -> -> ----------------------------------------------------------- -> 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
