How to: |
The XMLENCOD function encodes the following five standard characters when they are encountered in a string:
Character Name |
Character |
Encoded Representation |
---|---|---|
ampersand |
& |
& |
greater than symbol |
> |
> |
less than symbol |
< |
< |
double quotation mark |
" |
" |
single quotation mark (apostrophe) |
' |
' |
XMLENCOD(inlength, source_string, option, outlength, output)
where:
Integer
Is the length of the field containing the source character string or a field that contains the length.
Alphanumeric
Is the name of the field containing the source character string or a string enclosed in single quotation marks (').
Integer
Is a code that specifies whether to process a string that already contains XML-encoded characters. Valid values are:
Integer
Is the length of the output character string or a field that contains the length.
Note: The output length, in the worst case, could be six times the length of the input.
Integer
XMLENCOD XML-encodes characters and stores the output in a string with format A30:
XMLENCOD(30, INSTRING, 30, 1, 'A30')
For &, the result is &.
For >, the result is >.
iWay Software |