The processing instruction target matching "[xX][mM][lL]" is not allowed.

来源:互联网 发布:数据库索引的原理 编辑:程序博客网 时间:2024/06/11 21:27

今天从svn上检下来一个工程,报了N多错误

 

1 . XML中错误 :  The processing instruction target matching "[xX][mM][lL]" is not allowed.

 

     原因居然是第一行写的注释,也就是说第一行为空了,将 <?xml version="1.0" encoding="utf-8"?> 放到第一行,注释可以放第二行,OK了

 

2. jsp页面错误 : String cannot be resolved to a type

 

    原因是jre错误,打开工程的buildpath 会看到 jre 这项有个叹号,把他干掉,重新选择jre         myeclipse  : project ---> clean 一下  就OK了