Crist�bal Ruiz, Oscar wrote:
I get this exception: Content is not allowed in prolog.
This means there are non-whitespace characters before the document
element (and outside the XML decl and any PI or XML comment). Some
older parsers reported this errorneously if the input file was
UTF-16 encoded.
Check:
- Which JDK are you using? If you use a 1.4 series JDK, upgrade to
the latest release. The XML parser contained in the 1.4 JDK overrides
the parser coming with FOP.
- If you use the Xerces parser distributed with FOP, check that you
are using the 0.20.5 FOP release.
- Check the encoding of you XML source. Make sure it is UTF-8, as
assumed by the parser.
- Do a hex dump of you XML source and check whether non-whitespace but
otherwise invisible character like a non-breaking space sneaked in.
<?xml version = '1.0'?>
^ ^
Well, I'd remove these spaces just to be sure.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]