• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Importing multiple external XSD files

 
Ashish Agrawal
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

- m
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic