Microsoft KB Archive/316687

= BUG: Element may cause Data View to generate an error message =

Article ID: 316687

Article Last Modified on 9/13/2005

-

APPLIES TO


 * Microsoft Visual Basic .NET 2002 Standard Edition
 * Microsoft Visual Studio .NET 2002 Professional Edition

-



This article was previously published under Q316687



SYMPTOMS
When you view an XML document with Data View in the Microsoft Visual Studio .NET integrated development environment (IDE), you may receive the following error message:

Although this XML document is well formed, it contains structure that Data View cannot display.

The grid cannot show the data correctly because of the unsupported character &quot;.&quot; in element name(s).



CAUSE
The XML document has an element name that contains a period (.), and the period (.) is an unsupported character.



RESOLUTION
To resolve this problem, rename the element so that the name does not contain a period.



STATUS
Microsoft has confirmed that this is a problem in Microsoft Visual Basic .Net (2002).



Steps to Reproduce Behavior
 Open Visual Studio .NET. In Visual Basic .NET, create a new Windows Application project. Right-click the project name, point to Add, click Add New Item, and then double-click XML File under Templates.  Paste the following in the XML file:   <x> </x> </mycompany.com> </li> Click the Data tab, and note that the code contains no errors.</li>  Click the XML tab, and then add the y element within x, as follows: <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?> <mycompany.com> <x> <y></y> </x> </mycompany.com> </li></ol>

Keywords: kbbug kbpending kbvs2002sp1sweep KB316687

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.