SQL保存XML报错 “XML 分析: 行 1,字符 47,非法的 xml 字符”
例如:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<eventsRequest>
<eventHeader>
<sender>AAA</sender>
<receiver>BBB</receiver>
<sendDate>2017-11-16 13:30:06</sendDate>
<messageType>responseServices</messageType>
<messageId>50743097-32cb-4409-ab59-bd8169d67967</messageId>
</eventHeader>
<eventBody>
<response>
<command>Response</command>
<oriMessageType>inOrderReceiveServices</oriMessageType>
<responseType>2</responseType>
<oriMessageId>50743097-32cb-4409-ab59-bd8169d67967</oriMessageId>
<custNo>中国</custNo>
<orderNo>AAAAAAA</orderNo>
<orderDate>2017-11-16 13:30:06</orderDate>
<status>True</status>
</response>
</eventBody>
</eventsRequest>
解决方案一:去掉
“
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
”
解决方案二:修改
<?xml version="1.0" encoding="utf-8" standalone="yes"?> 中的编码格式改成:“GB2312”
问题原因:因为XML文档中包含中文,所以不能使用 "utf-8" 格式的编码,只能使用 “GB2312”
SQL保存XML报错 “XML 分析: 行 1,字符 47,非法的 xml 字符”的更多相关文章
- 新建maven工程时pom.xml报错
新建maven工程时,pom.xml报错:第一行报如下错误:multiple annotations found at this line后添加org.eclipse.m2e相关的plugin配置后, ...
- (转)解决dubbox-demo-provider.xml报错的问题:提示Failed to read schema document
背景:在eclipse项目中,经常会遇到xml文件提示找不到.xsd文件的情况.很有必要弄清xsd文件的加载过程! 1 解决过程 dubbo-demo-provider导入eclipse后dubbox ...
- android 程序中res/values-v14/styles.xml报错的解决办法
从旧的ADT迁移的新的ADT时, android 程序中res/values-v14/styles.xml报错: error: Error retrieving parent for item: No ...
- eclipse中Maven项目pom.xml报错:com.thoughtworks.xstream.io.HierarchicalStreamDriver
eclipse中创建Maven项目时 pom.xml报错:com.thoughtworks.xstream.io.HierarchicalStreamDriver 解决方案1.在pom文件中加入mav ...
- idea工程中web.xml报错Servlet should have a mapping
搭建ssm工程过程中web.xml报错:Servlet should have a mapping ....但是mapping已经配置好了...如下图: 搜索无果,后来发现是工程的web.xml位置配 ...
- applicationContext.xml报错org.springframework.orm.hibernate3.LocalSessionFactoryBean not found
applicationContext.xml报错org.springframework.orm.hibernate3.LocalSessionFactoryBean not found 解决办法: 1 ...
- 打开struts-config.xml 报错 解决方法Could not open the editor
打开struts-config.xml 报错 解决办法Could not open the editor 错误信息:Could not open the editor: Project XXX is ...
- xml报错“cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element”
配置使用dubbo时,xml报错“cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be ...
- 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字样,表示该文件并未下载完成,然 ...
- ssm框架spring-mvc.xml和spring-mybatis.xml报错项目无法正常启动问题
报错信息 Multiple annotations found at this line: - Referenced file contains errors (http://www.springfr ...
随机推荐
- 将Spring Boot应用程序迁移到Java9:兼容性
将 Spring Boot 应用程序迁移到 Java 9:兼容性 随着 Java 9 的到来,关于如何迁移应用程序以使用模块系统有很多的讨论.遗憾的是,大多数文章的焦点都集中于简单的 Hello Wo ...
- hadoop-02-关闭防火墙
hadoop-02-关闭防火墙 su root service iptables status #查看状态 即时关闭: service iptables stop #关闭 重启之后关闭: chkcon ...
- 上传canvas图片到服务器
canvas绘图后用 canvasDom.toDataURL()可以得到png格式图片的base64 dataURI 然后用ajax post给后台 ,后端程序把开头的data:image/png; ...
- angularjs 自定义服务
<!DOCTYPE HTML> <html ng-app="myApp"> <head> <meta http-equiv="C ...
- LA_3135优先队列
#include <iostream> #include <cstdio> #include <cstring> #include <queue> us ...
- Android Shape使用
说明 在Android开发中,使用shape可以很方便的帮我们画出想要的背景,相对于png图片来说,使用shape可以减少安装包的大小,而且能够更好的适配不同的手机. 使用 先贴出官网上的说明: &l ...
- sicily 1000. LinkedList
Description template <typename E> class LinkedList { private: // inner class: linked-list ...
- 一些 <link> 标记分享
<link rel="alternate" media="handheld" href="#" /> <link rel= ...
- JavaScript中函数作为另一个函数的参数的时候它存在于哪个作用域
一直对函数作为参数被传递进另外一个函数理解的不是很清除.先看下这段代码吧: function test(fn){ var bar = 1; fn(); } var bar = 99; test(fun ...
- Bomb HDU - 3555 数位dp
Code: #include<cstdio> #include<algorithm> #include<cstring> #include<string> ...