This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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?
Thanks and regards, Ashish Agrawal.
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
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.