title: Content is not allowed in prolog
body: <p>i'm trying to convert <code>xml</code> to html using <code>xslt</code>. Am using <code>java.xml.transform</code> to do this in java.
  it was working fine until i bumped into some <code>xml</code>. it said the following error. </p>
  
  <pre><code>[Fatal Error] :1:1: Content is not allowed in prolog. 
      javax.xml.transform.TransformerConfigurationException: 
      javax.xml.transform.TransformerConfigurationException: 
      javax.xml.transform.TransformerException: 
      org.xml.sax.SAXParseException: Content is not allowed in prolog.
  </code></pre>
  
  <p>so i made sure there is no character before the xml declaration. i even took care of BOM using the solution 
  <a href="http://forums.sun.com/thread.jspa?messageID=10324562#10324562" rel="noreferrer">http://forums.sun.com/thread.jspa?messageID=10324562#10324562</a></p>
  
  <p>STILL no luck and it happens only for one xml. i even opened the xml in editor and saved it in a file with <code>utf-8</code> encoding. this is driving me crazy. any idea? </p>
  
  <p>UPDATE: You get this error when you have given the wrong path for the <code>xsl</code> file and a file not found exception happens.
  (this was my case. it might help somebody. thanks for your responses)</p>