You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by BERGER Arnaud <A....@tiscalicontact.fr> on 2003/08/27 12:00:12 UTC
RE: org.xml.sax.SAXParseException: Content is not allowed in prol
og.
Hi !
I've seen this already,
In my case, the problem was that I had a superfluous line feed
at the beginning of my XML file.
Hope it helps
Arnaud
-----Message d'origine-----
De : Leo [mailto:leontyne@tstt.net.tt]
Envoyé : mercredi 27 août 2003 12:00
À : forrest
Objet : org.xml.sax.SAXParseException: Content is not allowed in prolog.
Hi folks
I have been making progress in my quest to have eXist
working inside forrest.
I am able to simple things such as retreive xml documents
and listing of collections.
However when I attempt to add a document: Introduction.xml, which
validates and displays correctly in Forrest
to the database, I get the following error
2003-08-27 05:36:46,324 [main] DEBUG (BrokerPool.java [initialize]:262) -
database engine initialized.
2003-08-27 05:37:15,006 [PoolThread-4] DEBUG (NativeBroker.java
[getCollection]:577) - loading collection /db/recipes
2003-08-27 05:37:15,016 [PoolThread-4] DEBUG (NativeBroker.java
[getCollection]:577) - loading collection /db/shakespeare
2003-08-27 05:37:15,016 [PoolThread-4] DEBUG (NativeBroker.java
[getCollection]:577) - loading collection /db/shakespeare/plays
2003-08-27 05:37:15,136 [PoolThread-4] DEBUG (Parser.java [scan]:662) -
validating document Introduction.xml ...
2003-08-27 05:37:15,166 [PoolThread-4] DEBUG (Parser.java
[fatalError]:366) - fatal error at line 1
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unkn
own Source)
Regards
Leo