XML Parsing Error IIS IE Firefox Coldfusion

Posted by: scoopseven 16 years, 2 months ago

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 :)

Currently unrated


Recent Tweets

Recent Posts

Archive

2013
2012
2011
2010
2009
2008
2007
2006

Categories

Authors

Feeds

RSS / Atom