Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 82562 invoked by uid 500); 21 Jan 2003 09:03:45 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 82535 invoked from network); 21 Jan 2003 09:03:44 -0000 Message-ID: <001e01c2c12c$09f46a90$1aa2240a@cajacanarias.es> From: "Eduardo Zurita" To: References: <00e601c2c07c$2bab75d0$1aa2240a@cajacanarias.es> <022501c25d7b$bdaf2d50$d767a8c0@kpiroumian> Subject: Re: Automatically generated linefeed before in the JSP causes SAXException Date: Tue, 21 Jan 2003 09:03:41 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N Hello again, The pipeline is: The qeq.jsp is a program that connects to remote URL using a HttpURLConnection object. I do it this way because I need modify some request properties. This remote URL returns XML data. The JSP simply writes (out.write) the XML to the output. But SAX doesn't like the output. Always there is a linefeed causing troubles. The linefeed is located just before any code I have written. The current error says: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed. Please help. Thanks in advance. ----- Original Message ----- From: "Konstantin Piroumian" To: Sent: Monday, September 16, 2002 12:22 PM Subject: Re: Automatically generated linefeed before in the JSP causes SAXException > If the JSP samples work then this is probably a problem somewhere in your > XML. > How does your sitemap look like (the relevant part)? > > Konstantin > > ----- Original Message ----- > From: Eduardo Zurita > To: cocoon-users@xml.apache.org > Sent: Monday, January 20, 2003 16:05 > Subject: Automatically generated linefeed before in the JSP > causes SAXException > > > Hello, > > I have found that my JSP generator always prints a LineFeed > automatically before causing the SAXException. > > I have examined the generated source and yes, there is a generated > "out.write("\r\n");" just before my code. > > How can I resolve this? > > Thanks. > > Eduardo. > > > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: