element 'project' cannot have character [children], because the type's content type is element-only

问题描述:更新idea代码后pom.xml文件出现该问题:

大致意思是project下面的子项有问题,有一些特殊符号,格式不对。

element 'project' cannot have character [children], because the type's content type is element-only

网上搜了下,有人说把文件里面的空格全删掉,或者粘贴到notepad++编辑器里面,再复制回来,我试了下好像并不行,还有人说重新手打一遍(方法应该可行,但自己太懒-_-)。
最终想到了一个折中的办法,通过依次删除xml文件里面的部分代码,并查看是否仍然报错,即可把问题代码找到。
当我删除如下这一块代码时,问题就消失了,排查发现问题如下,修改即可:element 'project' cannot have character [children], because the type's content type is element-only