I have defined XSD files for few XML files....all of them having <Transaction> as the root tag. There are multiple XSD files. Now I want to write a base XSD file...which will have root tag as <Request> with multiple <Transaction> node as its children . These children <Transaction> nodes' schema are defined in external XSDs and i want to import them.
The base XML will have <Request> as root tag with any number of <Transaction name="(name of transaction)"> child tags. The Transaction XSD file's name depend upon the "name" attribute of <Transaction> tag.
How can I import these external XSDs into the base XSD file?
I assume you meant "include" and not import. Technically speaking this can be done using the include construct of the schema element. That said, I would caution about Namespaces though, it can get really tricky and complicated.