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文件的头部。

缘由:post

            (1)通常可能是因为xml文件头部有了空格或回车致使的spa

            (2)大写和小写问题xml

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


总结:io

<?xml version="1.0" encoding="UTF-8"?>前面不要有不论什么其它字符。如空格、回车、换行这些不然就会出现上面的异常。class

相关文章
相关标签/搜索