SWEET! Thanks for pointing this out. I am going to give it a go straight away and let you know if it works out for me!
Thanks again guys. On 10/13/05, Werner Guttmann <[EMAIL PROTECTED]> wrote: > Yes, as recently added to the XML F.A.Q. (though not released yet): > > <p>To enable XML validation at the parser level, please add properties > to your > <tt>castor.properties</tt> file as follows:</p> > > <code> > org.exolab.castor.parser.namespaces=true > > org.exolab.castor.sax.features=http://xml.org/sax/features/validation,\ > > http://apache.org/xml/features/validation/schema,\ > > http://apache.org/xml/features/validation/schema-full-checking > </code> > > <p>Please note that the example given relies on the use of Apache > Xerces, hence the > <tt>apache.org</tt> properties; similar options should exist for other > parsers.</p> > > > I hope this helps > Werner > > wg> -----Original Message----- > wg> From: Danny Collins [mailto:[EMAIL PROTECTED] > wg> Sent: Thursday, October 13, 2005 3:49 PM > wg> To: [email protected] > wg> Subject: Re: [castor-user] Schema Validation > wg> > wg> My original thought was that a call to validate prior to > wg> Marshal would work. But that doesn't seem to do anything. > wg> Then I found a reference to a property in the > wg> castor.properties file called > wg> > wg> org.exolab.castor.marshalling.validation > wg> > wg> that I have tried with true and false to no avail. > wg> > wg> Any thing else that I should know about? > wg> > wg> > wg> TIA > wg> Danny > wg> > wg> On 10/13/05, Werner Guttmann <[EMAIL PROTECTED]> wrote: > wg> > Danny, > wg> > > wg> > No, you are not. How are you instructing the XML parser > wg> (via Castor) > wg> > to use XML Schema validation ? > wg> > > wg> > Werner > wg> > > wg> > wg> -----Original Message----- > wg> > wg> From: Danny Collins [mailto:[EMAIL PROTECTED] > wg> > wg> Sent: Wednesday, October 12, 2005 1:35 PM > wg> > wg> To: [email protected] > wg> > wg> Subject: [castor-user] Schema Validation > wg> > wg> > wg> > wg> Hello, > wg> > wg> > wg> > wg> I seem to be having problems getting the my objects validated > wg> > wg> against the schema - it seems to be able to tell me if I am > wg> > wg> missing required objects, but it doesn't seem to be able to > wg> > wg> validate other restrictions like maxlength. Am I > wg> misinterpreting > wg> > wg> the validation abilities? > wg> > wg> > wg> > wg> > wg> > wg> TIA > wg> > wg> Danny > wg> > wg> > wg> > wg> ------------------------------------------------- > wg> > wg> If you wish to unsubscribe from this list, please > wg> send an empty > wg> > wg> message to the following address: > wg> > wg> > wg> > wg> [EMAIL PROTECTED] > wg> > wg> ------------------------------------------------- > wg> > wg> > wg> > wg> > wg> > > wg> > ------------------------------------------------- > wg> > If you wish to unsubscribe from this list, please send an empty > wg> > message to the following address: > wg> > > wg> > [EMAIL PROTECTED] > wg> > ------------------------------------------------- > wg> > > wg> > > wg> > wg> ------------------------------------------------- > wg> If you wish to unsubscribe from this list, please send an > wg> empty message to the following address: > wg> > wg> [EMAIL PROTECTED] > wg> ------------------------------------------------- > wg> > wg> > > ------------------------------------------------- > If you wish to unsubscribe from this list, please > send an empty message to the following address: > > [EMAIL PROTECTED] > ------------------------------------------------- > > ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

