由于空格引起的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之间的空格就没问题了。

 

posted @ 2017-04-10 12:14  狂饮地沟油  阅读(2728)  评论(0编辑  收藏  举报