当要处理xml文件时,运行出现xml.etree.ElementTree.ParseError: not well-formed (invalid token)

归根究底是在xml文件中出现了不该出现的符号,如<sub>之类的,还有就是xml内容出现了中文字符也会出现这个错误,只要删除中文字符或是按照提示的行列出发检查错误,一定会找出来的,只要删掉就可以了。

xml报错:xml.etree.ElementTree.ParseError: not well-formed (invalid token)相关推荐

  1. Php输出Xml报错:XML declaration allowed only at the start of the document

    2019独角兽企业重金招聘Python工程师标准>>> 这个错误上google查了好几个地方,解决方法各种各样,不过对我这里的代码都没有作用.最后在开源社区里找到了一篇帖子,只要在输 ...

  2. 已解决(Python读取xml文件报错)xmL.etree.ELementTree.ParseError:not well-formed (invalid token): Line

    已解决(Python读取xml文件报错)xmL.etree.ELementTree.ParseError:not well-formed (invalid token): Line 文章目录 报错信息 ...

  3. Doris 5 python prepare_datastack.py 报错 xml.etree.ElementTree.ParseError: mismatched tag: line 10

    Doris 5 python prepare_datastack.py 报错 xml.etree.ElementTree.ParseError: mismatched tag: line 10, co ...

  4. 【报错笔记】Eclipse导入Maven项目时pom.xml报错,项目上有红感叹号。

    Eclipse导入Maven项目时pom.xml报错,项目上有红感叹号. 错误原因: pom.xml中依赖的jar包在本地仓库中不存在,但是在maven/conf/settings.xml中定义了阿里 ...

  5. pom.xml报错:Failure to find org.apache.maven.doxia:doxia-logging-api:jar:1.1 in http://repo.

    在maven本地库中找到对应的地址:org.apache.maven.doxia找到对应的文件:doxia-logging-api发现文件中包含有lastUpdated字样,表示该文件并未下载完成,然 ...

  6. Could not find resource xxx/xxxx/xxx.xml报错解决

    报错信息: The error may exist in com/keafmd/IUserDao.xml Cause: org.apache.ibatis.builder.BuilderExcepti ...

  7. pom.xml报错:org.codehaus.plexus.archiver.jar.Manifest.write(java.io.PrintWriter)

    问题描述: 创建spring boot项目时, pom.xml报错:org.codehaus.plexus.archiver.jar.Manifest.write(java.io.PrintWrite ...

  8. springboot环境搭配,pom.xml报错问题

    很多人都出现了创建springboot项目pom.xml报错的情况 复制查看具体错误信息 先update project -一下,如果还是没有下载,就手动去官网下载jar放到maven本地仓库 最后c ...

  9. Cocos2d-x的Eclipse工程中:导入91sdk后AndroidMainfest.xml报错

    1.错误如下: 报错文字内容: error: Error: String types not allowed (at 'configChanges' with value 'orientation|k ...

最新文章

  1. PHP下的Oauth2.0尝试 - OpenID Connect
  2. gc频繁的暂停启动_减少主要GC暂停的频率
  3. java~springcloud微服务目录索引
  4. 框架的特性_Go 语言 Web 框架 Echo 系列:基础篇—通过一个例子串联各特性
  5. Ubuntu 12.04 eclipse 安装 svn插件
  6. Mac操作指南:废纸篓里的文件无法清除如何解决?
  7. TwinCAT3入门教程1——TC3系统安装
  8. LCP 03 机器人大冒险(分析-计算运动周期)
  9. python爬虫——爬取小说
  10. 四足机器人关节锁死故障的容错问题
  11. 官网下载windows系统
  12. 【漏洞复现-骑士cms-代码执行】vulfocus/骑士cms_cve_2020_35339
  13. 【Unity学习历程之一】给Visual Studio中的C#脚本编辑添加自动补全
  14. 五子棋java百度文库_JAVA课程设计 五子棋(内附完整代码).doc
  15. [GitHub][2014-05-11 18:34:13]eqq-python
  16. FPGA项目开发——信号发生器(DDS)
  17. 微信小程序获取用户位置信息并显示到地图上
  18. 使用shc加密shell脚本
  19. 什么是coms coms设置图解
  20. 新代系统cnc怎样连接电脑_新代数控系统操作基础.doc

热门文章

  1. redis-cluster
  2. C++ map中使用erase应该注意到的问题
  3. 洛谷 P3732 [HAOI2017]供给侧改革【trie树】
  4. HDFS: The short-circuit local reads feature cannot be used
  5. 调用系统相册,相机功能,遇到闪退的情况
  6. CALayer3-层的属性
  7. DBA 1.0与DBA眼中的DBA 2.0时代
  8. 华为8月9日鸿蒙红包,华为正是宣布,“鸿蒙”系统8月9日上线,来看看有没有你的手机...
  9. android单片机wifi通信原理,基于单片机计算机之间无线通信实现.doc
  10. 贪心算法——洛谷(P1094)纪念品分组