我在下面的XML文件中出现以下错误...我在eclipse上开发了一个小型Struts2 Web应用程序,并且试图查找关于此错误的几篇文章, “网络应用程序”标签中的“过滤器”和“过滤器映射”......但我显示以下错误。以下XML文件有什么问题
The markup in the document following the root element must be well-formed.
下面是我的XML文件
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns
/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee
/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>blah!</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
什么是这里的问题....我想我已经结束properly..I不能明白这一点
XML中可能有趣的字符?用二进制编辑器查看它? –
treid ...没有发现错误....其他? – uLYsseus