cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bertrand Delacretaz" <bdelacre...@apache.org>
Subject Re: [2.2] validation of Spring xml files fails
Date Tue, 27 Jun 2006 19:40:08 GMT
On 6/27/06, Bertrand Delacretaz <bdelacretaz@apache.org> wrote:

> ...org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration
> of element 'beans'...

Weird...this was cause by having the ASF license comment before the
DOCTYPE in the XML document, although this is valid AFAIK.

<?xml version="1.0" encoding="UTF-8"?>
<!-- comment here causes the problem! -->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">

-Bertrand

Mime
View raw message