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

相關文章
相關標籤/搜索