Joe, there isn't a tool or a quick way to do this with XMLBeans. But you know XMLBeans can compile multiple schema files at once, if this is your target you shouldn't modify the schema files.
A tool to do this shouldn't be very hard to write, per target namespace, one will need to normalize namespaces (optionally use the same prefixes), use same values of elementFormDefault and attributeformDefault, and than combine the contents of schema elements. Cezar ________________________________ From: Gresock, Joe [mailto:[EMAIL PROTECTED] Sent: Friday, May 02, 2008 9:35 AM To: dev@xmlbeans.apache.org Subject: Merging XSDs I have an interesting problem, and I don't know whether XMLBeans is able to solve it. I have several XSDs that I would like to merge into one. Since XMLBeans creates a SchemaTypeSystem when importing multiple XSDs, I thought it might be possible to somehow write the type system into a new XSD that incorporates all elements/attributes/types/etc. Furthermore, ideally all element/type references would be resolved into their elements/types. I was playing around with the combination of applying xsd2inst on all the schemas and then running inst2xsd on the resulting instance documents, but I don't believe this will capture the appinfo, which is essential. Is there any way to do this using XMLBeans? 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.