菜鸟问题XML不会用。

我建了一个XML文件,输入下文后,点击“数据”,出现错误提示
++++++++++++++++++++++++++++++++++++

 1<collection xmlns="http://tempuri.org/~vs53.xsd" xmlns:dt="urn:schemas-microsoft-com:datatypes">
 2<date dt:dt="datetime">1998-10-13T15:56:00</date>
 3<book>
 4<title>Cosmos</title>
 5<author>Carl Sagan</author>
 6<publisher>Ballantine Books</publisher>
 7</book>
 8<book>
 9<title>Catwings</title>
10<author>Ursula K. Le Guin</author>
11<publisher>Scholastic</publisher>
12</book>
13</collection>

+++++++++++++++++++++++++++++++++++++++

错误提示:
++++++++++++++++++++++++++++++++++++++++
尽管此XML文档的格式正确,但它包含了数据试图无法显示的结构。
未声明“urn:schemas-microsoft-com:datatypes:dt"属性。(12,18)处发生了错误。
+++++++++++++++++++++++++++++++++++++++++
我刚开始接触xml,还请各位指点。
---------------------------------------------------------------

1<date dt:dt="datetime">1998-10-13T15:56:00</date>

dt:dt是什么意思,如果你说DATE是在dt这个命名空间中应如下

1<dt:date dt="datetime">1998-10-13T15:56:00</dt:date>

---------------------------------------------------------------

yes! 不用就去掉...
vs.net 中可以直接瀏覽数据试图的.
---------------------------------------------------------------

http://developer.ccidnet.com/pub/disp/Column?columnID=340

http://www.pconline.com.cn/pcedu/empolder/gj/vc/index_2.html

http://www.ccidnet.com/soft/func/sort/teach.htm

看看吧,希望能帮助你

Published At
Categories with Web编程
Tagged with
comments powered by Disqus