You may also be able to wrap the data in a <![CDATA[   data here   ]]> tag. This causes the XML parser to ignore (not parse) the data within and send it to the browser as is. Take a look at http://www.w3schools.com/xml/xml_cdata.asp for more info.
 
-Carl
-----Original Message-----
From: tr7nity [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 8:39 PM
To: [EMAIL PROTECTED]
Subject: RE: [cf-xml] preserve html?

Joshua,

I am creating an application that stores data in XML using coldfusion. I also need to retain HTML formatting between certain XML tags. I found that using the XMLCodeFormat() function of coldfusion 4.5+ does the trick.  Basically when I write my XML file (using CFFile) I just put HTMLCodeFormat(#variable#) between the tags.  The thing is the HTMLCodeFormat() automatically puts the <pre> tag around the HTML. So you have to account for this if your using a DTD.

 

DJ

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Joshua
Sent: Wednesday, March 06, 2002 1:27 PM
To: [EMAIL PROTECTED]
Subject: [cf-xml] preserve html?

 

Somewhere between using

CF_XMLDatasource

and

CF_XMLQuery

 

I loose html formatting Is this avoidable?

 

from the desk of Joshua O'Connor-Rose
-All is Good

Reply via email to