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