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

错误原因与解决办法:

  1. 这个错误的原因是因为xml的开始有多余的空格造成的,只要把多余的空格删除就没有问题了。
  2. xml开始部分写注释也会出现此问题。

本文出自:艺意

时间: 2024-08-08 13:43:57

出现 The processing instruction target matching "[xX][mM][lL]" is not allowed错误的相关文章

关于解决 The processing instruction target matching "[xX][mM][lL]" 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.

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

(转)ERROR : 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" encoding="UTF-8"?>不能

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

Bug解决方案:org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 8; 不允许有匹配 &quot;[xX][mM][lL]&quot; 的处理指令目标

十月 17, 2016 10:14:30 下午 org.springframework.context.support.AbstractApplicationContext prepareRefresh信息: Refreshing org[email protected]2e0fa5d3: startup date [Mon Oct 17 22:14:30 CST 2016]; root of context hierarchy十月 17, 2016 10:14:30 下午 org.spring

配置文件报错:不允许有匹配 [xX][mM][lL] 的处理指令目标。

http://www.68idc.cn/help/buildlang/ask/20150108163110.html —————————————————————————————————————————————————— 框架整合 的时候,XML配置文件大多数情况是从另一个框架里面复制的. 今天在练习整合的时候明明之前的项目对着,但是复制到这个项目后就报错. 错误代码: <span style="color:#FF0000;">严重: Exception sending co

关于mysql 5.7版本“报[Err] 1093 - You can&#39;t specify target table &#39;XXX&#39; for update in FROM clause”错误的bug

不同于oracle和sqlserver,mysql并不支持在更新某个表的数据时又查询了它,而查询的数据又做了更新的条件,因此我们需要使用如下的语句绕过: UPDATE teaching_department SET code_year = 2017, notice_code = (SELECT a.code + 1 FROM (SELECT MAX(notice_code) code FROM teaching_department WHERE department_id = 6284 and

[Django](1093, &quot;You can&#39;t specify target table &#39;fee_details_invoices&#39; for update in FROM clause&quot;) 错误

dele_id = Fee_details_invoices.objects.filter(fee_detail_id__in=fee_id_list, return_type='2').values_list('fee_detail_id', flat=True) Fee_details_invoices.objects.filter(fee_detail_id__in=dele_id).delete() 报错: django.db.utils.DatabaseError: (1093, "Y

grails项目启动时的Disconnected from the target VM, address: &#39;127.0.0.1:xxxxx&#39;错误

今天在启动(debug方式)grails项目时,突然出现了一个错误 Connected to the target VM, address: '127.0.0.1:63073', transport: 'socket' Disconnected from the target VM, address: '127.0.0.1:63073', transport: 'socket' 大意就是连接不上目标虚拟机了 在我的理解下,grails项目编译类似于一种缓存的机制,避免项目代码重复编译影响效率,