colum16专题

读取xml报错问题not well-formed (invalid token): line 52, colum16

1、若xml中出现中文字段 可以将文件的读取方式修改为GBK_2312编码 2、若xml中出现特殊字符,导致文件无法读取报错 xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 52, column 16 例如:在xml中存在L(B*W)=DN但是python打开后出现乱码 这种情况可以先打开x