title: "XML or text declaration not at start of entity" error in jsp
body: <p>i am trying to make my web application multibrowser compatible. Existing works perfectly in IE. But i am facing below issue when i try to run it in Mozilla firefox. </p>
  
  <pre><code>XML Parsing Error: XML or text declaration not at start of entity
  Location: localhost:8080/cdwweb/EC.do?_xsl=pages/ic_module.xsl
  Line Number 3, Column 1:
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  ^
  </code></pre>
  
  <p>below is code which i think might be cause of issue because error is thrown from below code file and not the one mentioned in error above.</p>
  
  <pre><code>&lt;%@ page language="java" import="java.util.*,org.apache.commons.lang.StringEscapeUtils" %&gt;
  
  &lt;%
      response.setHeader("Pragma", "No-cache");
  
      response.setDateHeader("Expires", 0);
  
      response.setContentType("text/xml");
  
      String xslFileName = (String)request.getAttribute("_xsl");
  
      xslFileName = StringEscapeUtils.escapeHtml(xslFileName);
  
  %&gt;
  
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;?xml-stylesheet type="text/xsl" href="&lt;%=xslFileName %&gt;"?&gt;
  
  &lt;root&gt;
  
  &lt;dummy&gt;&lt;/dummy&gt;
  
  &lt;/root&gt;
  </code></pre>
  
  <p>There are no spaces before or after  tag.</p>
  
  <p>Guys, Appreciating you in advance.</p>