Python处理xml
1.遇到非法格式的xml
bad.xml为空文档时,内容如下:
<?xml version="1.0"?><note id="hello">if salary < 1000 then</note
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 2, column 9
发布时间: 2013-03-22 09:49:50 作者: rapoo
Python处理xml
1.遇到非法格式的xml
bad.xml为空文档时,内容如下:
<?xml version="1.0"?><note id="hello">if salary < 1000 then</note