title: XMLParse( ) throwing Content is not allowed in prolog error
body: <p>I'm currently having trouble with <code>XMLParse()</code>, as the title says, it keeps throwing this error</p>
  
  <pre><code>An error occured while Parsing an XML document.
  Content is not allowed in prolog.
  </code></pre>
  
  <p>My code is pretty basic at the moment, I'm just trying to get it to dump the XML values.</p>
  
  <pre><code>&lt;cfset XMLPOST = GetHTTPRequestData().content&gt;
  &lt;cfset xmlDOM = XMLParse(XMLPOST)&gt;
  &lt;cfdump var="#xmlDOM#"&gt;
  </code></pre>
  
  <p>I've tried <a href="http://www.bennadel.com/blog/1206-Content-Is-Not-Allowed-In-Prolog-ColdFusion-XML-And-The-Byte-Order-Mark-BOM-.htm" rel="nofollow">Ben Nadels</a> method of determining whether it was a BOM or not, and his dump gave me this output </p>
  
  <pre><code>[x] - 120
  [m] - 109
  [l] - 108
  [=] - 61
  [%] - 37
  [3] - 51
  </code></pre>
  
  <p>which seems to me like there isn't a problem with that character. </p>
  
  <p>The XML is being posted to our server so I wonder if it that causing the problem? The XML which is being posted is in this format</p>
  
  <pre><code>xml=%3Cjob%3E%0D%0A++++%3Cjobref%3EExample+jobref%3C%2Fjobref%3E%0D%0A++++%3Cjobtitle%3EExample+jobtitle%3C%2Fjobtitle%3E%0D%0A++++%3Cdescription%3EExample+description%3C%2Fdescription%3E%0D%0A%3Cjob%3E%0D%0A++++++++++++
  </code></pre>
  
  <p>I have a feeling that it is this which is causing the errors? When I manually specify this XML on my document as a variable in its original form</p>
  
  <pre><code>&lt;job&gt;
      &lt;jobref&gt;Example jobref&lt;/jobref&gt;
      &lt;jobtitle&gt;Example jobtitle&lt;/jobtitle&gt;
      &lt;description&gt;Example description&lt;/description&gt;
  &lt;job&gt;
  </code></pre>
  
  <p>and parse that variable, it dumps fine.</p>
  
  <p>I assume that what I will need to do is change the XML Post format to a different format before I try to parse it? I have tried to use <code>ToString()</code> but to no avail.</p>
  
  <p>Thanks!</p>