The processing instruction target matching [xX][mM][lL] is not allowed.
生活随笔
收集整理的這篇文章主要介紹了
The processing instruction target matching [xX][mM][lL] is not allowed.
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
現(xiàn)象:
ERROR ? : The processing instruction target matching "[xX][mM][lL]" is not allowed.?
異常解釋:xml文件不能被解析,一般出現(xiàn)這樣的問題在于xml格式上,并且問題多出現(xiàn)在xml文件的頭部。
ERROR ? : The processing instruction target matching "[xX][mM][lL]" is not allowed.?
異常解釋:xml文件不能被解析,一般出現(xiàn)這樣的問題在于xml格式上,并且問題多出現(xiàn)在xml文件的頭部。
原因:
? ? ? ? ? ? (1)一般多是因為xml文件頭部有了空格或回車導(dǎo)致的
? ? ? ? ? ? (2)大小寫問題
? ? ? ? ? ? <?xml version="1.0" encoding="UTF-8"?>不能寫成<?XML version="1.0" encoding="UTF-8"?>
總結(jié):
<?xml version="1.0" encoding="UTF-8"?>前面不要有任何其他字符,如空格、回車、換行這些否則就會出現(xiàn)上面的異常。
總結(jié)
以上是生活随笔為你收集整理的The processing instruction target matching [xX][mM][lL] is not allowed.的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 信息论的简单应用
- 下一篇: C语言Dialogbox添加图片,c#