日期:2014-05-18  浏览次数:20673 次

入门经典 XML章 其中的在代码窗口中右击XML,从弹出的菜单中选择View Data Grid用不出来
入门经典 XML章 其中的在代码窗口中右击XML,从弹出的菜单中选择View Data Grid用不出来,我的XML文件没有问题呀,如下
<?xml version="1.0" encoding="utf-8"?>
<stories>
  <story>
  <title>A House in Aungier Street</title>
  <author>
  <name>Sheridan Le Fanu</name>
  <nationality>Irish</nationality>
  </author>
  </story>
  <story>
  <title>The Signalman</title>
  <author>
  <name>Charles Dickens</name>
  <nationality>English</nationality>
  </author>
  <rationg>atmospheric</rationg>
  </story>
  <story>
  <title>The Turn of the Screw</title>
  <author>
  <name>HENRY James</name>
  <nationality>American</nationality>
  </author>
  <rationg>a bit dull</rationg>
  </story>
</stories>
不过说的什么代码窗口,我就有点纳闷,因为XML文件没有什么代码窗口呀,不过说过来说过去,我总是没有看到View Data Grid选项,高人帮忙指点一下,如何才能看到这个.

------解决方案--------------------
不太明白你说的,你可以using system.xml,用xml类来读取这个文件好了。
------解决方案--------------------
XML代码窗口就是VS中的XML文件编辑窗口,我这里右键第一个选项就是“查看数据网格”。。