今天把Expat从
http://www.xml.com/pub/a/1999/09/expat/index.html?page=2
http://www.jclark.com/xml/expat.html
下载下来,在用他的那个示例时出现错误:not well-formed没找到原因,估计是
XML文档写得不规范,测试用文档test.xml:
<?xml version="1.0" ?>
<gps ID = "carNo" Time = "00:00:00">
<x> 0 </x>
<y> 3 </y>
<z> 100</z>
</gps>
报错如下:
0: Start tag gps - <gps ID = "carNo" Time = "00:00:00">
1: Text -
2: Text -
3: Start tag x - <x>
4: Text - 0
5: End tag x -
6: Text -
7: Text -
8: Start tag y - <y>
9: Text - 3
10: End tag y -
11: Text -
12: Text -
13: Start tag z - <z>
14: Text - 100
15: End tag z -
16: Text -
17: End tag gps -
Parse error at line 7:
not well-formed
但愿早日解决这个问题,花了3/4个小时了吧,头都大了
http://www.xml.com/pub/a/1999/09/expat/index.html?page=2
http://www.jclark.com/xml/expat.html
下载下来,在用他的那个示例时出现错误:not well-formed没找到原因,估计是
XML文档写得不规范,测试用文档test.xml:
<?xml version="1.0" ?>
<gps ID = "carNo" Time = "00:00:00">
<x> 0 </x>
<y> 3 </y>
<z> 100</z>
</gps>
报错如下:
0: Start tag gps - <gps ID = "carNo" Time = "00:00:00">
1: Text -
2: Text -
3: Start tag x - <x>
4: Text - 0
5: End tag x -
6: Text -
7: Text -
8: Start tag y - <y>
9: Text - 3
10: End tag y -
11: Text -
12: Text -
13: Start tag z - <z>
14: Text - 100
15: End tag z -
16: Text -
17: End tag gps -
Parse error at line 7:
not well-formed
但愿早日解决这个问题,花了3/4个小时了吧,头都大了