jump to navigation

XML Parsing Error IIS IE Firefox Coldfusion February 12, 2008

Posted by scoopseven in ColdFusion, IIS.
trackback

While loading a page in my browser, IE or FireFox, I kept getting this odd error message… “XML Parsing Error – Not Well Formed”. The odd thing was that I was loading a HMTL page, no XML. I tried changing the DocType tag, making my Javascript XML complaint (duh!) and I could not get this error to go away. I read something re: ASP causing the problem, so I disabled that in IIS, nothing. Turns out in a background process, I was calling a web service where the following code was used.

<cfheader name=”Content-Type” value=”text/xml; charset=utf-8″>

So CF had my browsers thinking that my non-XML / HTML page was in fact XML. Easy fix, I just added this tag as the first line in my HMTL page:

<cfheader name=”Content-Type” value=”text/html”>

And the world was right again :)

Comments»

No comments yet — be the first.