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

Posted xiaohan970121

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了(转)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"?>前面不要有任何其他字符,如空格、回车、换行这些否则就会出现上面的异常。





以上是关于(转)ERROR : The processing instruction target matching "[xX][mM][lL]" is not allowed.的主要内容,如果未能解决你的问题,请参考以下文章

[转].Net Core Web应用发布至IIS后报“An error occurred while starting the application”错误

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

转 Centos下安装apahce的configure: error: APR not found. Please read the documentation解决办法

Error Domain=NSURLErrorDomain Code=-999 “The operation couldn’t be completed.

AndroidStudio导入Eclipse项目报错Error:Could not determine the class-path for interface com.android.builder

VS2010在winform中怎么转到html