android点滴1:SAXParseException

青春壹個敷衍的年華 提交于 2019-12-01 21:43:22

The processing instruction target matching "[xX][mM][lL]" is not allowed.
Exception:org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.

这个异常解释为:xml文件不能被解析,一般出现这样的问题在于xml格式上,并且问题多出现在xml文件的头部。如果出现这个错误,是因为头部有空行,有可能你的xml文件不是在第一行开始或者xml的开头“<?xml ...."前有空格!

 

 

 

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!