Hello again,
The pipeline is:
<map:pipeline>
<map:match pattern="qeq.html">
<map:generate type="jsp" src="servicios/qeq/jsp/qeq.jsp"/>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 16, 2002 12:22 PM
Subject: Re: Automatically generated linefeed before <?xml ...?> 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: [EMAIL PROTECTED]
> Sent: Monday, January 20, 2003 16:05
> Subject: Automatically generated linefeed before <?xml ...?> in the JSP
> causes SAXException
>
>
> Hello,
>
> I have found that my JSP generator always prints a LineFeed
> automatically before <?xml.....?> 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. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>