Text Escaping
In an XML text, characters are replaced as listed in the following table.
|
Character in an XML Function |
Replacement |
|
& |
& |
|
> |
> |
|
< |
< |
|
" |
" |
|
' |
' |
Examples
XMLTEXT ('&')
The replacement results in &
XMLFOREST ('>' AS green)
The replacement results in <green>></green>
XMLELEMENT (NAME red, '"')
The replacement results in <red>"</red>