Reference Guide > TDV Support for SQL Functions > TDV-Supported XML Functions > Text Escaping
 
Text Escaping
In an XML text, characters are replaced as listed in the following table.
Character in an XML Function
Replacement
&
&
>
>
<
&lt;
"
&quot;
'
&apos;
Examples
XMLTEXT ('&')
 
The replacement results in &amp;
XMLFOREST ('>' AS green)
 
The replacement results in <green>&gt;</green>
XMLELEMENT (NAME red, '"')
 
The replacement results in <red>&quot;</red>