Call this function to convert characters that are unsafe for use in XML to their safe equivalents.
The string to be converted.
The length in characters of the string to be converted.
Caller-allocated buffer to receive the converted string.
The length in characters of the caller-allocated buffer.
Flags describing how the conversion is to be performed. See ATL_ESC Flags.
The length in characters of the converted string.
Possible conversions performed by this function are shown in the table: