我在下面的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