Sorry Lionel, I missed the point, I did not see which component you were using. Olivier -----Message d'origine----- De : Lionel Crine [mailto:crine@4dconcept.fr] Envoyé : mercredi, 10. septembre 2003 11:37 À : users@cocoon.apache.org Objet : RE: SAX Error with stream generator I find the error. 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 prolog. Try to delete the entire line with >the XML prolog and to rewrite it. > >Olivier > > >-----Message d'origine----- >De : Lionel Crine [mailto:crine@4dconcept.fr] >Envoyé : mardi, 9. septembre 2003 15:36 >À : users@cocoon.apache.org >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 : > >world > > >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: users-unsubscribe@cocoon.apache.org >For additional commands, e-mail: users-help@cocoon.apache.org > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >For additional commands, e-mail: users-help@cocoon.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org