报错: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.

解决方式(适用于所有.xml)
将<?xml version="1.0" encoding="UTF-8" ?>
前多余的注释、空格和空行等去掉即可。