读书人

org.xml.sax.SAXParseException: Docu

发布时间: 2012-11-12 12:31:58 作者: rapoo

org.xml.sax.SAXParseException: Document root element "struts-config", must match

org.xml.sax.SAXParseException: Document root element "struts-config", must match DOCTYPE root "structs-config".

?

头文件换一下spring1.X使用DOCTYPE,而2.X版本使用schema。我们使用低版本的spring就要配置文件使用dtd解析方式,使用高版本的就要使用xsl解析方式。

<!DOCTYPE struts-config PUBLIC

? ? ? ? ? "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"

? ? ? ? ? "http://struts.apache.org/dtds/struts-config_1_3.dtd">

读书人网 >XML SOAP

热点推荐