Error message when you view multi-dimensional XSD schemas in the Visual Studio .NET XML Schema Designer (325695)
The information in this article applies to:
- Microsoft Visual Studio 2005 Standard Edition
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Visual Studio 2005 Express Edition
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
This article was previously published under Q325695 SYMPTOMS
When you try to open and view a multi-dimensional XML Schema Definition (XSD) schema in Visual Studio .NET, an XML Designer window may open instead of a Schema Designer window, and you may receive the following error message in the Data view of the XML Designer:
Although this XML document is well formed, it contains structure that the DataView cannot display. The same table (TableName) cannot be the child table in two nested relations
CAUSE
The XSD schema is saved as a file with an .xml extension. The Visual Studio .NET designers are extension-based. Files with an .xml extension are interpreted as regular XML files, so an XML Designer window opens instead of a Schema Designer window when you try to open and view the document in Visual Studio .NET. The XML Designer in Visual Studio .NET uses the ADO.NET schema inference rules to automatically infer the schema of an XML document. The ADO.NET schema inference rules do not permit or support multi-dimensional relationships in the RTM release of the Microsoft .NET Framework.
RESOLUTION
Rename or save the document as a file with an .xsd extension to open and view it in a Visual Studio .NET XML Schema Designer window. The Visual Studio .NET XML Schema Designer can correctly load and display multi-dimensional XSD schemas.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 6/14/2006 |
---|
Keywords: | kbprb KB325695 kbAudDeveloper |
---|
|