码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-11-23 01:50:48      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:style   io   ar   color   sp   文件   on   cti   size   

在处理和保存XML文件时,出现The processing instruction target matching "[xX][mM][lL]" is not allowed 错误,也就是你的xml配置文件格式错误。所以,要自己检查一下格式,这个在网上是搜不到的。

最容易疏忽的错误就是,用eclipse的快捷键Ctrl+Shift+/添加注释后,在手动删除时,没有删除最开始的一句

<?xml version="1.0" encoding="UTF-8"?>前面的空格什么的就会报错,还不容易发现。

因为<?xml version="1.0" encoding="UTF-8"?>这行前面必须是置顶的,前面不允许有任何空格

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

标签:style   io   ar   color   sp   文件   on   cti   size   

原文地址:http://www.cnblogs.com/wytings/p/4116062.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!