Which doesn't validate against the xsd, does it? It'll validate against the descriptor files.
Is there a way to validate against the xsd (as a file)? -----Original Message----- From: Bill Leng [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 22. Juni 2005 17:05 To: [email protected] Subject: Re: [castor-user] [XML] Validate against XSD when unmarshalling Invoke foo.validate()? [EMAIL PROTECTED] wrote: >Hi, > >I'd like to validate the XML Message i recieve against the XSD the Data >Model was generated from. > >Let's say i have the following code: > >Foo foo = Unmarshaller.unmarshall(Foo.class, aReader); > >The Foo class was generated using the SourceGenerator from foo.xsd. How >can i validate the XML agains Foo.xsd? > > > >Help is greatly appreciated. > >Cheers, >Simon > > >------------------------------------------------- >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] ------------------------------------------------- ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

