How to: |
The XMLDECOD function decodes the following five standard XML-encoded characters when they are encountered in a string:
Character Name |
Character |
XML-Encoded Representation |
---|---|---|
ampersand |
& |
& |
greater than symbol |
> |
> |
less than symbol |
< |
< |
double quotation mark |
" |
" |
single quotation mark (apostrophe) |
' |
' |
XMLDECOD(inlength, source_string, outlength, output)
where:
Integer
Is the length of the field containing the source character string or is a field that contains the length.
Alphanumeric
Is the name of the field containing the source character string or the string enclosed in single quotation marks (').
Integer
Is the length of the output character string or a field that contains the length.
Integer
XMLDECOD decodes XML-encoded characters and stores the output in a string with format A30:
XMLDECOD(30, INSTRING, 30, 'A30')
For &, the result is &.
For >, the result is >.
iWay Software |