由于空格引起的xml错误之The processing instruction target matching "[xX][mM][lL]" is not allowed以及the markup in the document preceding the root element must be well-formed


这里显示的就是The processing instruction target matching "[xX][mM][lL]" is not allowed,这个错误。将version="1.0"和encoding="UTF-8"之间插入一个空格后这个错误消失了

然而第二行出现了错误the markup in the document preceding the root element must be well-formed,这又是什么错误呢?删除!和DOCTYPE之间的空格就没问题了。

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM