Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The processing instruction target matching "[xX][mM][lL]" is not allowed

843834Oct 17 2007 — edited Oct 19 2007
I 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2007
Added on Oct 17 2007
4 comments
868 views