title: Groovy XmlSlurper Content is not allowed in prolog
body: <p>I am trying to parse an XML file and running into this error:</p>
  
  <pre><code>org.xml.sax.SAXParseException: Content is not allowed in prolog
  </code></pre>
  
  <p>I've seen the other posts on SO, but my XML document looks OK - no extra characters or white space before the XML declaration.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd"&gt;
  &lt;coverage branch-rate="0.24074074074074073" branches-covered="39" branches-valid="162" complexity="0" line-rate="0.3485915492957746" lines-covered="198" lines-valid="568" timestamp="1396622452625" version="0.2.6"&gt;
  </code></pre>
  
  <p>Here is the relevant portion of the script (Groovy 1.8.9): </p>
  
  <pre><code>def coveragedata = new XmlSlurper(false,false).parseText(coverageFile)
  </code></pre>
  
  <p>Thank you for the assistance.</p>