Article ID: 325695 - View products that this article applies to.
This article was previously published under Q325695
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
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.
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.
To re-create the error message and test the resolution, follow these steps:
You may also receive the "The same table (TableName) cannot be the child table in two nested relations" error message when you use XML files with Visual Studio .NET or with the Xsd.exe utility. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/325696/ )You receive an error message when you view multidimensional XML data in the Visual Studio .NET XML Designer
Article ID: 325695 - Last Review: June 14, 2006 - Revision: 3.4
Contact us for more help
Connect with Answer Desk for expert help.