In the stream generator there is :
String sXml = request.getParameter(parameter); inputSource = new InputSource(new StringReader(sXml));
And it seems that, when you upload a file, it is placed in the upload-dir. Then sXml get the path of the file and a StringReader is apply on It.
I changed the StringReader to FileInputString. It gives :
String sXml = request.getParameter(parameter); inputSource = new InputSource(new FileInputStream(sXml));
I don't know if it's a nice solution to do that but it's working as I want to.
Lionel
At 20:05 09/09/2003 +0200, you wrote:
Lionel,
What editor are you using?
This might happen if you opened an UTF-8 encoded file with a non-UTF-8 aware editor or if you opened your file with the wrong encoding, modified and saved it in another encoding (ANSI or ISO-8859-1).
In that case, there might be two or three odd characters at the begining of the file, before the <?xml ... ?> prolog. Try to delete the entire line with the XML prolog and to rewrite it.
Olivier
-----Message d'origine----- De : Lionel Crine [mailto:[EMAIL PROTECTED] Envoy� : mardi, 9. septembre 2003 15:36 � : [EMAIL PROTECTED] Objet : SAX Error with stream generator
I have this error, why ?
Description: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: null:1:1:org.xml.sax.SAXParseException: Content is not allowed in prolog.
The content of the document is : <?xml version="1.0" ?> <hello>world</hello>
Lionel CRINE Soci�t� : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
