The processing instruction target matching "[xX][mM][lL]" is not allowed
843834Oct 17 2007 — edited Oct 19 2007I am trying to open a HttpURLConnection to a JSP in my application. This JSP processes the data that I print to the PrintStream, forwards the request to another JSP which has XML content type. When I get the InputStream from the HttpURLConnection and parse the XML, I get the following error:
org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed
The jsp from which I get the XML has the xml prolog as the first line of the JSP without any spaces before it. I also tried to print the data I get from the InputStream, and I see the XML which is well formed. Can any one tell me if I am missing something here? thanks in advance for any help.