(转)ERROR : The processing instruction target matching "[xX][mM][lL]" is not allowed.

现象:
ERROR   : The processing instruction target matching "[xX][mM][lL]" is not allowed. 
异常解释:xml文件不能被解析,一般出现这样的问题在于xml格式上,并且问题多出现在xml文件的头部。

原因:

(1)一般多是因为xml文件头部有了空格或回车导致的

(2)大小写问题

<?xml version="1.0" encoding="UTF-8"?>不能写成<?XML version="1.0" encoding="UTF-8"?>

总结:

<?xml version="1.0" encoding="UTF-8"?>前面不要有任何其他字符,如空格、回车、换行这些否则就会出现上面的异常。

原文地址:https://www.cnblogs.com/xiaohan970121/p/9552176.html

时间: 2024-07-30 02:33:53

(转)ERROR : The processing instruction target matching "[xX][mM][lL]" is not allowed.的相关文章

The processing instruction target matching &quot;[xX][mM][lL]&quot; is not allowed.

现象: ERROR   : The processing instruction target matching "[xX][mM][lL]" is not allowed. 异常解释:xml文件不能被解析,一般出现这样的问题在于xml格式上,并且问题多出现在xml文件的头部. 原因:             (1)一般多是因为xml文件头部有了空格或回车导致的             (2)大小写问题             <?xml version="1.0&qu

关于解决 The processing instruction target matching &quot;[xX][mM][lL]&quot; is not allowed

在处理和保存XML文件时,出现The processing instruction target matching "[xX][mM][lL]" is not allowed 错误,也就是你的xml配置文件格式错误.所以,要自己检查一下格式,这个在网上是搜不到的. 最容易疏忽的错误就是,用eclipse的快捷键Ctrl+Shift+/添加注释后,在手动删除时,没有删除最开始的一句 <?xml version="1.0" encoding="UTF-8

出现 The processing instruction target matching &quot;[xX][mM][lL]&quot; is not allowed错误

错误原因与解决办法: 这个错误的原因是因为xml的开始有多余的空格造成的,只要把多余的空格删除就没有问题了. xml开始部分写注释也会出现此问题. 本文出自:艺意

dom4j解析xml报错:Nested exception: org.xml.sax.SAXParseException: White space is required between the processing instruction target and data.

采用dom4j方式解析string类型的xml xml:        String string="<?xmlversion=\"1.0\" encoding=\"UTF-8\"?><ROOT><HEAD><INFO><BUSINESSNO>T065205072015000097</BUSINESSNO><BUSINESSTYPE>T</BUSINESSTYPE&g

HiveServer2 的jdbc方式创建udf的修改(add jar 最好不要使用),否则会造成一场 java.sql.SQLException: Error while processing statement: null

自从Hive0.13.0开始,使用HiveServer2 的jdbc方式创建udf的临时函数的方法由: ADD JAR ${HiveUDFJarPath} create TEMPORARY function md5  as 'com.hugedata.hive.udf.codec.UDFMd5'; 改为:     create TEMPORARY function md5  as 'com.hugedata.hive.udf.codec.UDFMd5' USING JAR ${HiveUDFJa

解决hiveserver2报错:java.io.IOException: Job status not available - Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask

用户使用的sql: select count( distinct patient_id ) from argus.table_aa000612_641cd8ce_ceff_4ea0_9b27_0a3a743f0fe3; 下面做不同的测试: 1.beeline -u jdbc:hive2://0.0.0.0:10000 -e "select count( distinct patient_id ) from argus.table_aa000612_641cd8ce_ceff_4ea0_9b27_

MDK st-link下载STM32程序出现Internal command error和Error:Flash download failed. Target DLL

MDK st-link下载STM32程序出现Internal command error和Error:Flash download failed. Target DLL Error: flash download failed - Target DLL has been cancelled 是因为目标板的芯片处于休眠的状态,在尝试连接目标板时候也会出现报错Internal command error Flash download failed target dll has been can的现象

applicationContext.xml无错有红叉,Error occured processing XML &#39;Provider org.apache.xerces.parsers.解决方案

applicationContext.xml无错有红叉,网上讲的取消xml验证的方法没用... 甚至我的myeclipse10连windows-->perferences-->myeclipse-->validation 下的Build和Manual都找不到.. 虽然挂红叉能运行,但有个严重的问题是Hibernate逆向生成model和dao层的时候如果使用spirng来管理,则SessionFactoryId很可能是空的,就不能继续往下生成. 所幸在论坛瞥到一帖子说是因为插件冲突——s

Error occured processing XML &amp;#39;Cannot find class [springmvc.extention.BeanArgumentResolver]&amp;#39;.

<Description Resource Path Location Type Error occured processing XML 'Cannot find class [springmvc.extention.BeanArgumentResolver]'. See Error Log for more details applicationContext.xml maven在管理项目时会出现各种比較奇葩的错误,对一些技术性的东西绝对不能不求甚解,比方上面这个错误,事实上是由jar包引起