No, unfortunately, for substitution groups in particular, you have to recompile both schemas into one jar. If you did not use substitution groups, then it would be possible to do what you say.
Radu -----Original Message----- From: Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 2:34 AM To: [email protected] Subject: Question on validation Hi, I have a question on validation of xml documents: Let's assume I have compiled a schema 'schema1.xsd' containing some substitution groups into 'schema1.jar'. Later I have compiled another schema 'schema2.xsd', defining some new elements of the substitution groups in schema1, into 'schema2.jar'. If I now want to validate a document 'schema1doc.xml', which contains substitution group elements defined in schema2.xsd, the validation fails. If I import schema2.xsd in schema1.xsd and then compile this into only one jar, the validation works without an error. Do I always have to recompile schemas, if there are new substitution groups elements defined in other new schemata? Is there any possibility to let XmlBeans also use new generated jars for validation? Thanks, Chris --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

