I am working on a web application using Eclipse 3.1.1 with MyEclipse 4.1M2 and I think I found a bug related to xml validation. I am using a new development version of Spring with some aspectj related aop enhancements so my spring xml file uses namespaces. The xml I have is a valid xml file and Spring happily parses it without problems and works properly. The opening tag is actually taken exactly as it appears in the Spring aop examples. The IDE, however, seems to think I have the following error:
Severity Description Resource In Folder Location Creation Time Id
2 cvc-elt.1: Cannot find the declaration of element ‘beans’. springapp-servlet.xml SimpleTime/WebRoot/WEB-INF line 8 January 5, 2006 12:27:14 AM 2310
I have just been ignoring the problem, but would like to see if it is a bug and if it could be fixed. If all else fails, is there a way to disable xml validation for a specific xml file in a project? Here is the top of the xml file and the error is seen on line 8.
1<?xml version=”1.0″ encoding=”UTF-8″?>
2
3 <beans
4 xmlns=”http://www.springframework.org/schema/beans”
5 xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
6 xmlns:aop=”http://www.springframework.org/schema/aop”
7 xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
8 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd”>
9
10 <aop:spring-configured />
11
12 <bean id=”simpleTimeDataSource” class=”org.apache.commons.dbcp.BasicDataSource” destroy-method=”close”>
13 <property name=”driverClassName” value=”org.postgresql.Driver” />
…