Article ID: 317611 - View products that this article applies to.
This article was previously published under Q317611
The current implementation of XSD schema-validation support in the .NET framework does not convert the targerNamespace of the local referencing type of an included XSD (it does not support the "chameleon" include). For example, the following a.xsd file includes the b.xsd and c.xsd files:
Inside b.xsd, a testType type is defined:
Inside c.xsd, test is declared with the testType type:
The following error message is returned with the a.xsd schema file:
"Type 'testType' is not declared." in c.xsd
To work around this problem, add a xmlns="test" namespace declaration to the c.xsd file, for example:
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Steps to Reproduce the Problem
Article ID: 317611 - Last Review: February 12, 2007 - Revision: 6.4
Contact us for more help
Connect with Answer Desk for expert help.