Hi Erik, just tried with
-Dorg.exolab.castor.marshalling.validation=false but i still get : ValidationException: Anagrafiche is a required field.; - location of error: XPATH: Application ..... there is not way of exclude the validation for a specific marshall/unmarshall? --Davide --- [EMAIL PROTECTED] wrote: > Davide, > > Validation rules (such as minOccurs=1) > are only validated when you invoke marshaling or > unmarshaling > (and then, only if the > org.exolab.castor.marshalling.validation > property is set to true). > > Also, of course, the rules are fired if you invoke > isValid() or > validate() > on your generated value objects or > Validator.validate(). > > Have you tried this yet? What errors are you > getting? > > --Erik > > > > > -----Original Message----- > > From: Davide Mora [mailto:d_mora@;yahoo.com] > > Sent: Monday, October 28, 2002 7:21 AM > > To: [EMAIL PROTECTED] > > Subject: [castor-dev] generator: create an > empty but > > valid object > > > > > > > > Hi, > > > > i need to create an empty but valid object. > > The object classes are generated from the > xsd schema. > > If a sequence require at least one element.. > i need a > > new MyObject that create also this instance. > > I hope make sense what i want to do. > > Any idea? > > > > Regards, > > Davide > > > > > > > __________________________________________________ > > Do you Yahoo!? > > Y! Web Hosting - Let the expert host your > web site > > http://webhosting.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 > __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
