Search code examples
xmlxsd

What's the difference between xsd:include and xsd:import?


What's the difference between xsd:include and xsd:import? When would you use one instead of the other, and when might it not matter?


Solution

  • The fundamental difference between include and import is that you must use import to refer to declarations or definitions that are in a different target namespace and you must use include to refer to declarations or definitions that are (or will be) in the same target namespace.

    Source: https://web.archive.org/web/20070804031046/http://xsd.stylusstudio.com/2002Jun/post08016.htm