报错:The processing instruction target matching “[xX][mM][lL]” is not allowed.
在写struts配置文件struts.xml时<?xml version="1.0" encoding="UTF-8" ?>
报错:The processing instruction target matching "[xX][mM][lL]" is not allowed.
![struts配置文件](https://i-blog.csdnimg.cn/blog_migrate/5619357c12974a65225b3bce3f99d82b.png)
解决方式(适用于所有.xml)
将<?xml version="1.0" encoding="UTF-8" ?>
前多余的注释、空格和空行等去掉即可。