由於空格引起的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