Python论坛  - 讨论区

标题:[python-chinese] (no subject)

2005年04月28日 星期四 15:21

皮大庆 Pidaqing at mail.iame.cn
Thu Apr 28 15:21:17 HKT 2005

limodou,您好!

	果然是这个原因。

======= 2005-04-28 15:04:13 您在来信中写道:=======

>我试了一下,那是因为你没有把xml文件按utf-8编码保存。
>
>在05-4-28,皮大庆<Pidaqing at mail.iame.cn> 写道:
>> limodou,您好!
>> 不是格式的问题,这个文件是我直接拷贝过来的。
>> 
>> 
>>     4
>>     
>>         Python
>>         
>>             测试
>>         
>>     
>>     
>>         Zope
>>     
>> 
>> 异常信息:
>> >>> xmldoc = minidom.parse("d:\\python\\xml\\book.xml")
>> 
>> Traceback (most recent call last):
>>   File "", line 1, in -toplevel-
>>     xmldoc = minidom.parse("d:\\python\\xml\\book.xml")
>>   File "C:\Python24\lib\xml\dom\minidom.py", line 1915, in parse
>>     return expatbuilder.parse(file)
>>   File "C:\Python24\lib\xml\dom\expatbuilder.py", line 924, in parse
>>     result = builder.parseFile(fp)
>>   File "C:\Python24\lib\xml\dom\expatbuilder.py", line 207, in parseFile
>>     parser.Parse(buffer, 0)
>> ExpatError: not well-formed (invalid token): line 7, column 22
>> 
>> ======= 2005-04-28 13:17:36 您在来信中写道:=======
>> 
>> >在05-4-28,皮大庆<Pidaqing at mail.iame.cn> 写道:
>> >> Zoom Quiet,您好!
>> >>
>> >> 我将gb2312去掉了,可为什么文件里出现中文出现异常:
>> >> ExpatError: not well-formed (invalid token): line 7, column 21。
>> >
>> >这种错误是说你的xml文件格式不正确。比如属性没有加上双引号,标签没有结束什么的。它已经指出你的文件是多少行,多少列错误了。看一看吧。
>> >
>> >> 只要xml文件里没有中文,就正常了。
>> >>
>> >
>> >--
>> >I like python!
>> >My Donews Blog: http://www.donews.net/limodou
>> >New Google Maillist: http://groups-beta.google.com/group/python-cn
>> >_______________________________________________
>> >python-chinese list
>> >python-chinese at lists.python.cn
>> >http://python.cn/mailman/listinfo/python-chinese
>> >
>> 
>> = = = = = = = = = = = = = = = = = = = =
>> 
>>>> 礼!
>> 
>> 
>> 皮大庆
>> Pidaqing at mail.iame.cn
>> 2005-04-28
>> 
>> 
>> _______________________________________________
>> python-chinese list
>> python-chinese at lists.python.cn
>> http://python.cn/mailman/listinfo/python-chinese
>> 
>> 
>> 
>
>
>-- 
>I like python! 
>My Donews Blog: http://www.donews.net/limodou
>New Google Maillist: http://groups-beta.google.com/group/python-cn
>_______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese
>

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        皮大庆
        Pidaqing at mail.iame.cn
          2005-04-28


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年04月28日 星期四 15:24

Bruce Who whoonline at msn.com
Thu Apr 28 15:24:58 HKT 2005

bGltb2RvdToNCg0KCXB5dGhvbta4xM/Kx87Sy+a/2su1tcSjrDotUKOsztLN/MHLvt/M5bXEw/vX
1sHLoaPUrcC01Npkb2hhb8nPv7S1vdPQ0ru49nBkZqOs1/fV38rww/vKx6GwxqS088fsobGjrNXi
sb7K6dKys6TG2rfF1NpzbXRotcRweXRob26w5tbDtqXM+8Dvo6zX986q0MLK1sjrw8XK6aGjDQoN
Cj09PT09PT0gMjAwNS0wNC0yOCAxNTowODo0MiBsaW1vZG91IHdyb3RlOiA9PT09PT09DQoNCj7T
prjDyse2xc7Eyb23rdLrtcSwyaOs1PXDtLHks8nGpLTzx+zBy6O/DQo+DQo+1NowNS00LTI4o6xC
cnVjZSBXaG88d2hvb25saW5lQG1zbi5jb20+INC0tcCjug0KPj4gxqS088fsOg0KPj4gDQo+PiAg
ICAgICAgIM7S1q7HsNKy0/a1vbn91eK49s7KzOKjrL/JxNzKx9LyzqptaW5pZG9t1rvWp7PWdXRm
LTi1yMnZyv28uNbWseDC66GjztK1xL3ivvaw7LeoysejrLbByOvV+7j2zsS8/qOstauyu7bByOu1
2tK70NC8tDw/eG1sIHZlcnNpb249IjEu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rz
LnB5dGhvbi5jbg0KPj4gaHR0cDovL3B5dGhvbi5jbi9tYWlsbWFuL2xpc3RpbmZvL3B5dGhvbi1j
aGluZXNlDQo+PiANCj4+IA0KPj4gDQo+DQo+DQo+LS0gDQo+SSBsaWtlIHB5dGhvbiEgDQo+TXkg
RG9uZXdzIEJsb2c6IGh0dHA6Ly93d3cuZG9uZXdzLm5ldC9saW1vZG91DQo+TmV3IEdvb2dsZSBN
YWlsbGlzdDogaHR0cDovL2dyb3Vwcy1iZXRhLmdvb2dsZS5jb20vZ3JvdXAvcHl0aG9uLWNuDQo+
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCj5weXRob24t
Y2hpbmVzZSBsaXN0DQo+cHl0aG9uLWNoaW5lc2VAbGlzdHMucHl0aG9uLmNuDQo+aHR0cDovL3B5
dGhvbi5jbi9tYWlsbWFuL2xpc3RpbmZvL3B5dGhvbi1jaGluZXNlDQo+DQoNCj0gPSA9ID0gPSA9
ID0gPSA9ID0gPSA9ID0gPSA9ID0gPSA9ID0gPQ0KCQkJDQoNCqGhoaGhoaGhoaGhoaGhoaFCcnVj
ZSBXaG8NCqGhoaGhoaGhoaGhoaGhoaF3aG9vbmxpbmVAbXNuLmNvbQ0KoaGhoaGhoaGhoaGhoaGh
oaGhoaEyMDA1LTA0LTI4DQoNCg==

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号