MACROMEDIA COLFUSION MX 7-CFML Reference page 912

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

XmlFormat
Description
Escapes special XML characters in a string so that the string can be used as text in XML.
Returns
A copy of the
string
Category
String
functions,
Function syntax
XmlFormat(string)
See also
,
,
cfxml
XmlNew
MX Developer's Guide
History
ColdFusion MX: Added this function.
Parameters
Parameter
string
Usage
This function escapes characters as follows:
Text character
Greater than symbol (>)
Less than symbol (<)
Single-quotation mark (')
Double-quotation mark (")
Ampersand symbol (&)
Carriage return (but not line feed)
High ASCII characters in the range
128-255.
Example
The following example shows how
Source command in the browser to see the results. ColdFusion interprets the "" in the second text
string as representing a single-quotation mark in text before it applies the
<?xml version = "1.0"?>
<cfoutput>
912
Chapter 3: ColdFusion Functions
parameter that is safe to use as text in XML.
XML functions
,
XmlParse
XmlValidate
Description
A string or a variable that contains one
Escaped representation
&gt;
&lt;
&apos;
&quot;
&amp;
Removed from the text.
Replaced by unicode escape sequence; for example, É
(capital E with an Acute symbol) is replaced by &#xc9;.
XmlFormat
; Chapter 35, "Using XML and WDDX" in ColdFusion
escapes special XML characters. Use the View
function.
XmlFormat

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents