macromedia.coldfusion.advanced_techniques
[Top] [All Lists]

xml file output

Subject: xml file output
From: "Nick201"
Date: Fri, 19 Oct 2007 15:20:03 +0000 UTC
Newsgroups: macromedia.coldfusion.advanced_techniques

I am outpting result from query using cfsavecontnent and then output using 
XMLFormat function. When I write into file
 It is displaying line format. I try to put <BR> in my code but it doesn't work 
. It will put <BR> tag in xml output.

 code
 <cfsavecontent variable="userxml">
 <Name>
         <FName>#Full_Name##status#</FName>
         <ContactNumber>#WORK_PHONE#</ContactNumber>
         <BirthDate>#DOB#</BirthDate>
         <Status>#type#</Status>
         <focus>#Description#<efocus>
 </Name>


 <cfcontent type="text/xml">
 <cfoutput>
 #XmlFormat(userxml)#
 </cfoutput>

 OUTPUT
 ------------------
 <?xml version="1.0"?> <Member> <Name> <FormattedName>ABC</FormattedName> 
<ContactNumber></ContactNumber> <BirthDate>12/12/2000</BirthDate> 
<Status>Member</Member> <focus>IT</focus> 



<Prev in Thread] Current Thread [Next in Thread>