SFU.encodeXmlValue()
- Last UpdatedAug 06, 2024
- 1 minute read
Use encodeXmlValue() method to encode all characters in the XML value.
The following characters in the XML value are encoded as follows:
|
XML Value |
Encoded Value |
|---|---|
|
& |
& |
|
' |
' |
|
" |
" |
|
< |
< |
|
> |
> |
Syntax
sRetVal = SFU.encodeXmlValue(string);
Parameters
|
Parameter |
Description |
|---|---|
|
string |
String to be encoded. |
Return Value
This method returns a string value.
Example
// Encode XML value.
SFU.encodeXmlValue("\"Developer's\" Guide");
//"Developer's" Guide is encoded as "Developer's" Guide.