PDA

View Full Version : Error in spring-beans.dtd


m_kk
Mar 19th, 2006, 07:27 PM
Hi,
I am using the showcase example deployed along with WebWork 2.2.1. It gives me an error in applicationContext.xml on spring-beans.dtd. I typed in URL http://www.springframework.org/dtd/spring-beans.dtd in firefox and this is the error it gave me

XML Parsing Error: syntax error
Location: http://www.springframework.org/dtd/spring-beans.dtd
Line Number 47, Column 1:<!ELEMENT beans (
^

I am using tomcat 5.5 and webwork2.2.1. Is there any solution for this problem?

Thanks you in advance>

Andreas Senft
Mar 20th, 2006, 02:32 AM
I can reproduce it also in Firefox. Opera shows the DTD but marks the error location.
IE also shows an error with an additional message indicating that a DTD declaration outside a DTD is not allowed.

Did something change here lately?

Regards,
Andreas

m_kk
Apr 16th, 2006, 03:24 PM
so does this problem have any solution????

Thank you

EndlessWinter
Apr 17th, 2006, 05:43 AM
DTD is not xml, and validating dtd as an xml file will result in many errors for sure
To validate a DTD you can use some special software, like XMLSPY, or Stylus Studio. There are no errors in spring-beans.dtd