`
qiuyujia
  • 浏览: 171176 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

成功解决问题[xml:"[xX][mM][lL]" is not allowed

XML 
阅读更多
成功解决问题[Fatal Error] :1:7: The processing instruction target matching "[xX][mM][lL]" is not allowed. 
对于错误:

[Fatal Error] test.xml:1:7: The processing instruction target matching "[xX][mM][lL]" is not allowed.

这个问题主要是因为xml文件不能解析,一般出现这样的问题是在与xml格式上的问题,并且问题多出现在xml文件的头部。

于是我将xml文件用记事本打开仔细检查了下,果然是xml文件的头部多出了一个问题,将空格去掉保存好了,解析xml文件并读取其中数据就成功了!



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics