This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C02E3B.FC3FFB10
Content-Type: text/plain;
        charset="iso-8859-1"

Hey there,

I'm trying to get the following code to output xml to IE (that will show up
in IE's XML parser)

------------------------------------------------------------------------
<CFSET xmltext =
"<employees><person>Rob</person><person>scott</person></employees>">

<CFHEADER NAME="CONTENT_TYPE" VALUE="text/xml">
<CFOUTPUT>#xmltext#</CFOUTPUT>
------------------------------------------------------------------------

I can't get the above code to work in CF, but I can get the following
to work in ASP:

------------------------------------------------------------------------
<%
xmltext =
"<employees><person>Rob</person><person>scott</person></employees>"

Response.ContentType = "text/xml"
Response.Write(xmltext)
%>
------------------------------------------------------------------------

Can anyone tell me what I'm doing wrong here? Thanks,

Scott Becker
Web Developer : ConnectWise, Inc.
www.ConnectWise.com

------_=_NextPart_001_01C02E3B.FC3FFB10
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>CF / XML Generation</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hey there,</FONT>
</P>

<P><FONT SIZE=3D2>I'm trying to get the following code to output xml to =
IE (that will show up</FONT>
<BR><FONT SIZE=3D2>in IE's XML parser)</FONT>
</P>

<P><FONT =
SIZE=3D2>---------------------------------------------------------------=
---------</FONT>
<BR><FONT SIZE=3D2>&lt;CFSET xmltext =3D =
&quot;&lt;employees&gt;&lt;person&gt;Rob&lt;/person&gt;&lt;person&gt;sco=
tt&lt;/person&gt;&lt;/employees&gt;&quot;&gt;</FONT>
</P>

<P><FONT SIZE=3D2>&lt;CFHEADER NAME=3D&quot;CONTENT_TYPE&quot; =
VALUE=3D&quot;text/xml&quot;&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;CFOUTPUT&gt;#xmltext#&lt;/CFOUTPUT&gt;</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
---------</FONT>
</P>

<P><FONT SIZE=3D2>I can't get the above code to work in CF, but I can =
get the following</FONT>
<BR><FONT SIZE=3D2>to work in ASP:</FONT>
</P>

<P><FONT =
SIZE=3D2>---------------------------------------------------------------=
---------</FONT>
<BR><FONT SIZE=3D2>&lt;%</FONT>
<BR><FONT SIZE=3D2>xmltext =3D =
&quot;&lt;employees&gt;&lt;person&gt;Rob&lt;/person&gt;&lt;person&gt;sco=
tt&lt;/person&gt;&lt;/employees&gt;&quot;</FONT>
</P>

<P><FONT SIZE=3D2>Response.ContentType =3D &quot;text/xml&quot;</FONT>
<BR><FONT SIZE=3D2>Response.Write(xmltext)</FONT>
<BR><FONT SIZE=3D2>%&gt;</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
---------</FONT>
</P>

<P><FONT SIZE=3D2>Can anyone tell me what I'm doing wrong here? =
Thanks,</FONT>
</P>

<P><FONT SIZE=3D2>Scott Becker</FONT>
<BR><FONT SIZE=3D2>Web Developer : ConnectWise, Inc.</FONT>
<BR><FONT SIZE=3D2>www.ConnectWise.com</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C02E3B.FC3FFB10--
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to