Error parsing XML: An invalid XML character (Unicode:0x1f) was found
来源:互联网 发布:微信小说系统源码 编辑:程序博客网 时间:2024/05/11 23:02
出现错误:
Error parsing XML:XML InputStream(56) An invalid XML character (Unicode:0x1f) was found in the value of attribute "column" and element is "property".
问题出现的场景:
在springmvc框架中,新增一个表,然后利用hibernate创建一个对应的实体类和.hbm.xml文件,最后在applicationContext.xml中配置完该.hbm.xml文件后运行程序,出现上述红色错误。
问题解决过程:
解读错误消息,说是该.hbm.xml文件中一个property元素的column属性发现非法字符。但是在myeclipse中查看该.hbm.xml配置文件一切正常,也没有什么非法字符。我将该文件中的内容全部注释掉都不行,依然报该错误,可见只要文件中存在非法字符,无论注释与否,都会识别并报错。几经折腾,最后无意将该文件内容全部复制到notepad++软件中,结果非法字符原形毕露,发现在某个property的column属性中果然后"US"字样的非法字符。按照正常逻辑,我在notepad++中将非法字符删除,然后全部复制回myeclipse中,保存再次运行,一起OK。
备注:在记事本中显示不出来非法字符。
0 0
- Error parsing XML: An invalid XML character (Unicode:0x1f) was found
- XML解析出现An invalid XML character (Unicode: 0x**) was found in the comment.
- XML解析出现An invalid XML character (Unicode: 0x**) was found in the comment.
- XML解析出现An invalid XML character (Unicode: 0x**) was found in the comment.
- XML解析出现An invalid XML character (Unicode: 0x**) was found in the comment.
- XML解析出现An invalid XML character (Unicode: 0x**) was found in the comment.
- All About JAVA An invalid XML character (Unicode: 0xdd65) was found in the comment 错误
- 关于 Exception: An invalid XML character (Unicode: 0x0) was found
- 关于 Exception: An invalid XML character (Unicode: 0x0) was found
- org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x0) was found in the CDATA sectio
- org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x7)
- org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x7)
- error: Error parsing XML: not well-formed (invalid token)
- error: Error parsing XML: not well-formed (invalid token)解决办法
- Error:(65) Error parsing XML: not well-formed (invalid token)
- Error:(37) Error parsing XML: not well-formed (invalid token)
- error: Error parsing XML: not well-formed (invalid token)
- Error:(58) Error parsing XML: not well-formed (invalid token)
- HTTP cookies 详解
- 读写Android中assets目录下的文件的方法详解
- 关于android 调试时运行adb shell 提示offline 的问题解决
- python+selenium定时登录路由并重启路由
- Cross-Scale Cost Aggregation for Stereo Matching
- Error parsing XML: An invalid XML character (Unicode:0x1f) was found
- 常用技术代码或问题快现-不断更新中
- 机器学习之异常检测
- HTML
- visio studio code 简介
- Python字典和集合
- 16 - 12 - 18 十大排序算法总结(三) 之 归并排序
- java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I 解决方法
- 在CentOS 7上通过Apache和mod_wsgi运行Django应用