• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

xml file output

Guest
Oct 19, 2007 Oct 19, 2007

Copy link to clipboard

Copied

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>
TOPICS
Advanced techniques

Views

190

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Oct 19, 2007 Oct 19, 2007

Copy link to clipboard

Copied

LATEST
Replace <br> with #Chr(10)##Chr(13)# for linefeed and carriage characters

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation