Hi Keith, If you generated your sources using Castor Source Generator then you DON'T need a mapping file. Just make sure the descriptors classes are compiled and in your classpath.
Arnaud > -----Original Message----- > From: Keith Koski [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 17, 2002 9:13 PM > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] complex types from simple types? > > Keith Koski wrote: > > > however, i get a SAX exception when i try to unmarshal a file. i.e. > > "Text data found as child of: <element name>" > > i've attached a jar file of the code. what am i doing wrong? is it > > because i'm using a mapping file? > > my apologies, my mapping file is incomplete. > > i added the following fragment and all is fine. > > <class name="foobar.ExtChildNode"> > <map-to xml="ChildNode"/> > <field name="content" type="java.math.BigDecimal"> > <bind-xml name="PCDATA" node="text"/> > </field> > </class> > > > cheers, > kjk > > ----------------------------------------------------------- > 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
