|
Mailing Lists
|
Home / Groups / ColdFusion Talk (CF-Talk)
cfheader breaks my xmlI'm not sure if this is relevant because I'm not sure how you're using your XML, but I use <cfcontent> instead of <cfheader> and it works great: <cfcontent type="text/xml" reset="Yes" /> <cfoutput> ...myXML... </cfoutput> > Hi, > > I'm having some trouble create a valid XML document using cfheader to > change the page content. > > My simple file looks like this: > > xml.cfm > > <?xml version="1.0" encoding="UTF-8"?> > <root> > <node> > <child>1</child> > </node> > <root> > > I open this up and its valid. I know change the content type so the > file is passed as XML: > > <cfheader name="Content-Type" value="text/xml"> > <?xml version="1.0" encoding="UTF-8"?> > <root> > <node> > <child>1</child> > </node> > <root> > > This breaks the page. It seems that <cfheader> adds three blank lines > to the top of the page. > > Has anyone else come across this problem? > > Cheers, > > Andy > > |
September 05, 2010
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||